diff --git a/griptape/artifacts/action_artifact.py b/griptape/artifacts/action_artifact.py index 811a35af8..91501c489 100644 --- a/griptape/artifacts/action_artifact.py +++ b/griptape/artifacts/action_artifact.py @@ -12,17 +12,6 @@ @define() class ActionArtifact(BaseArtifact, SerializableMixin): - """Represents an instance of an LLM calling a Action. - - Attributes: - tag: The tag (unique identifier) of the action. - name: The name (Tool name) of the action. - path: The path (Tool activity name) of the action. - input: The input (Tool params) of the action. - tool: The matched Tool of the action. - output: The output (Tool result) of the action. - """ - value: Action = field(metadata={"serializable": True}) def __add__(self, other: BaseArtifact) -> ActionArtifact: diff --git a/griptape/common/action.py b/griptape/common/action.py index bdd58aeeb..b819e2ad6 100644 --- a/griptape/common/action.py +++ b/griptape/common/action.py @@ -13,6 +13,17 @@ @define(kw_only=True) class Action(SerializableMixin): + """Represents an instance of an LLM calling a Action. + + Attributes: + tag: The tag (unique identifier) of the action. + name: The name (Tool name) of the action. + path: The path (Tool activity name) of the action. + input: The input (Tool params) of the action. + tool: The matched Tool of the action. + output: The output (Tool result) of the action. + """ + tag: str = field(metadata={"serializable": True}) name: str = field(metadata={"serializable": True}) path: Optional[str] = field(default=None, metadata={"serializable": True})