Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rounak610 committed Aug 23, 2023
1 parent bcdc9b4 commit f17d035
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions superagi/agent/tool_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def build_tool(self, tool: Tool):
return new_object

def set_default_params_tool(self, tool, agent_config, agent_execution_config, model_api_key: str,
resource_summary: str = ""):
resource_summary: str = "",memory=None):
"""
Set the default parameters for the tools.
Expand Down Expand Up @@ -113,9 +113,9 @@ def set_default_params_tool(self, tool, agent_config, agent_execution_config, mo
agent_execution_id=self.agent_execution_id)
if hasattr(tool, 'tool_response_manager'):
tool.tool_response_manager = ToolResponseQueryManager(session=self.session,
agent_execution_id=self.agent_execution_id)
agent_execution_id=self.agent_execution_id,memory=memory)

if tool.name == "QueryResourceTool":
tool.description = tool.description.replace("{summary}", resource_summary)

return tool
return tool

Check warning on line 121 in superagi/agent/tool_builder.py

View check run for this annotation

Codecov / codecov/patch

superagi/agent/tool_builder.py#L121

Added line #L121 was not covered by tests

0 comments on commit f17d035

Please sign in to comment.