From 98ddeeaabfcb3e643c207314ec3a0ad26ffd216e Mon Sep 17 00:00:00 2001 From: qcampbel Date: Thu, 4 Jan 2024 15:38:38 -0500 Subject: [PATCH] updated createnewtool description & _run args --- mdagent/tools/maketools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mdagent/tools/maketools.py b/mdagent/tools/maketools.py index 0cfc5c52..e7ae1cc6 100644 --- a/mdagent/tools/maketools.py +++ b/mdagent/tools/maketools.py @@ -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] @@ -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()