From d9cab648bc609b5596ec408aa33abbef49650d0d Mon Sep 17 00:00:00 2001 From: harshalmore31 Date: Wed, 25 Jun 2025 23:12:10 +0530 Subject: [PATCH] Refactor condition for tool execution to enhance readability --- swarms/structs/agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: