From 248a943c5a06a1b144ff6ca0fda7916384793861 Mon Sep 17 00:00:00 2001 From: Pavan Kumar <66913595+ascender1729@users.noreply.github.com> Date: Sun, 20 Apr 2025 11:55:02 +0000 Subject: [PATCH] fix(agent): resolve unterminated docstring in add_tool method --- swarms/structs/agent.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/swarms/structs/agent.py b/swarms/structs/agent.py index b16cfc88..587529d2 100644 --- a/swarms/structs/agent.py +++ b/swarms/structs/agent.py @@ -844,7 +844,7 @@ class Agent: else: # Use a default temperature self.llm.temperature = 0.5 - except Exception as error: + except Exception as error: logger.error( f"Error dynamically changing temperature: {error}" ) @@ -1932,14 +1932,13 @@ class Agent: raise error def add_tool(self, tool: Callable): - """Add a single tool to the agent's tools list.""" + """Add a single tool to the agent's tools list. Args: tool (Callable): The tool function to add Returns: - The result of appending the tool to the tools list - """ + The result of appending the tool to the tools list""" logger.info(f"Adding tool: {tool.__name__}") return self.tools.append(tool)