info_artifact#
Bases: BaseArtifact “)
Attributes#
Name |
Type |
Description |
|---|---|---|
<a href="info_artifact.mdx#griptape.artifacts.info_artifact.InfoArtifact.value" title="value = field(converter=str, metadata={'serializable': True}) class-attribute instance-attribute (griptape.artifacts.info_artifact.InfoArtifact.value)"><code class="language-python">value</code></a> |
str |
The info to convey.<br/> |
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