Bases: BaseArtifact
Represents helpful info that can be conveyed to the LLM.
For example, "No results found" or "Please try again.".
Attributes:
Name |
Type |
Description |
value |
str
|
|
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
|