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 # Check and execute callable tools
if exists(self.tools): if exists(self.tools):
if ( if (
self.tool_struct is not None self.output_raw_json_from_tool_call
and self.output_raw_json_from_tool_call is True is True
): ):
response = response response = response
else: else:

Loading…
Cancel
Save