diff --git a/swarms/structs/agent.py b/swarms/structs/agent.py index ab7ef93e..eb56ce68 100644 --- a/swarms/structs/agent.py +++ b/swarms/structs/agent.py @@ -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: