info_artifact

Bases: BaseArtifact

Attributes

NameTypeDescription
valuestrThe info to convey.
Source Code in griptape/artifacts/info_artifact.py
@define
class InfoArtifact(BaseArtifact):
    """Represents helpful info that can be conveyed to the LLM.

    For example, "No results found" or "Please try again.".

    Attributes:
        value: The info to convey.
    """

    value: str = field(converter=str, metadata={"serializable": True})

    def to_text(self) -> str:
        return self.value
  • value = field(converter=str, metadata={'serializable': True}) class-attribute instance-attribute

to_text()

Source Code in griptape/artifacts/info_artifact.py
def to_text(self) -> str:
    return self.value

Could this page be better? Report a problem or suggest an addition!