Skip to content

Commit

Permalink
updated createnewtool description & _run args
Browse files Browse the repository at this point in the history
  • Loading branch information
qcampbel committed Jan 4, 2024
1 parent add148a commit 98ddeea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mdagent/tools/maketools.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ class CreateNewTool(BaseTool):
If succeeded, it will return the name of the tool. Unless you set
'execute' to False, it will also execute the tool and return the result.
Make sure to provide any necessary input arguments for the tool.
If execution fails, move on to ReTryExecuteSkill.
"""
args_schema: Type[BaseModel] = CreateNewToolInputSchema
subagent_settings: Optional[SubAgentSettings]
Expand All @@ -217,7 +218,7 @@ def get_all_tools_string(self):
all_tools_string += f"{tool.name}: {tool.description}\n"
return all_tools_string

def _run(self, task, orig_prompt, curr_tools, execute=True, args=None):
def _run(self, task, orig_prompt, curr_tools, execute, args=None):
# run iterator
try:
all_tools_string = self.get_all_tools_string()
Expand Down

0 comments on commit 98ddeea

Please sign in to comment.