action_artifact

Bases: BaseArtifact

Attributes

NameTypeDescription
valueToolActionThe 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)

Could this page be better? Report a problem or suggest an addition!