Bases: BaseArtifact
Represents the LLM taking an action to use a Tool.
Attributes:
Name |
Type |
Description |
value |
ToolAction
|
The Action to take. Currently only supports ToolAction.
|
Source code in griptape/artifacts/action_artifact.py
| @define()
class ActionArtifact(BaseArtifact):
"""Represents the LLM taking an action to use a Tool.
Attributes:
value: The Action to take. Currently only supports ToolAction.
"""
value: ToolAction = field(metadata={"serializable": True})
def to_text(self) -> str:
return str(self.value)
|
value: ToolAction = field(metadata={'serializable': True})
class-attribute
instance-attribute
to_text()
Source code in griptape/artifacts/action_artifact.py
| def to_text(self) -> str:
return str(self.value)
|