info_artifact
Adapted from the Griptape AI Framework documentation.
Bases:
BaseArtifact
Attributes
Name | Type | Description |
---|---|---|
value | str | The 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
- On this page
- Attributes
- to_text()
Could this page be better? Report a problem or suggest an addition!