Skip to content

Info artifact

InfoArtifact

Bases: BaseArtifact

Source code in griptape/artifacts/info_artifact.py
@define
class InfoArtifact(BaseArtifact):
    value: str = field(converter=str, metadata={"serializable": True})

    def __add__(self, other: BaseArtifact) -> InfoArtifact:
        return InfoArtifact(self.value + other.value)

value: str = field(converter=str, metadata={'serializable': True}) class-attribute instance-attribute

__add__(other)

Source code in griptape/artifacts/info_artifact.py
def __add__(self, other: BaseArtifact) -> InfoArtifact:
    return InfoArtifact(self.value + other.value)