add section for tools update

- make the run update for tools
pull/615/head
Sambhav Dixit 2 months ago committed by GitHub
parent 0d2d7fd439
commit e8b8d48f24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -826,7 +826,19 @@ class Agent:
# Check and execute tools
if self.tools is not None:
print(f"self.tools is not None: {response}")
tool_result = self.parse_and_execute_tools(response)
self.parse_and_execute_tools(response)
if tool_result:
self.update_tool_usage(
step_meta["step_id"],
tool_result["tool"],
tool_result["args"],
tool_result["response"]
)
# Update agent output history
self.agent_output.full_history = self.short_memory.return_history_as_string()
# Log the step metadata
logged = self.log_step_metadata(

Loading…
Cancel
Save