Bases: BaseArtifact
Serves as an escape hatch for artifacts that don't fit into any other category.
Attributes:
Name |
Type |
Description |
value |
Any
|
The value of the Artifact.
|
Source code in griptape/artifacts/generic_artifact.py
| @define
class GenericArtifact(BaseArtifact):
"""Serves as an escape hatch for artifacts that don't fit into any other category.
Attributes:
value: The value of the Artifact.
"""
value: Any = field(metadata={"serializable": True})
def to_text(self) -> str:
return str(self.value)
|
value: Any = field(metadata={'serializable': True})
class-attribute
instance-attribute
to_text()
Source code in griptape/artifacts/generic_artifact.py
| def to_text(self) -> str:
return str(self.value)
|