Skip to content

Commit

Permalink
Tool: Tested + Updated load_tool
Browse files Browse the repository at this point in the history
  • Loading branch information
antoninoLorenzo committed Aug 10, 2024
1 parent 2b9ec30 commit 8542782
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/agent/tools/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def load_tool(path: str):

name = tool_data['name']
tool_description = ''.join(tool_data['tool_description'])
# in case args_description is provided as string instead
# of a list of strings it still works: ''.join(string) returns string
args_description = ''.join(tool_data['args_description'])

if not (name and tool_description and args_description):
Expand Down

0 comments on commit 8542782

Please sign in to comment.