Skip to content

Commit

Permalink
Fix docstring location
Browse files Browse the repository at this point in the history
  • Loading branch information
collindutter committed Jul 10, 2024
1 parent 97d620f commit d55ce6e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 0 additions & 11 deletions griptape/artifacts/action_artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 11 additions & 0 deletions griptape/common/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit d55ce6e

Please sign in to comment.