Refactor condition for tool execution to enhance readability

pull/923/head
harshalmore31 6 days ago
parent 57eff390a5
commit d9cab648bc

@ -1083,8 +1083,8 @@ class Agent:
# Check and execute callable tools
if exists(self.tools):
if (
self.tool_struct is not None
and self.output_raw_json_from_tool_call is True
self.output_raw_json_from_tool_call
is True
):
response = response
else:

Loading…
Cancel
Save