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