|
|
@ -1080,12 +1080,11 @@ class Agent:
|
|
|
|
# Print
|
|
|
|
# Print
|
|
|
|
self.pretty_print(response, loop_count)
|
|
|
|
self.pretty_print(response, loop_count)
|
|
|
|
|
|
|
|
|
|
|
|
# Handle tools
|
|
|
|
# Check and execute callable tools
|
|
|
|
|
|
|
|
if exists(self.tools):
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
hasattr(self, "tool_struct")
|
|
|
|
self.tool_struct is not None
|
|
|
|
and self.tool_struct is not None
|
|
|
|
and self.output_raw_json_from_tool_call is True
|
|
|
|
and self.output_raw_json_from_tool_call
|
|
|
|
|
|
|
|
is True
|
|
|
|
|
|
|
|
):
|
|
|
|
):
|
|
|
|
response = response
|
|
|
|
response = response
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|