fix(agent): resolve unterminated docstring in add_tool method

pull/819/head
Pavan Kumar 3 months ago committed by ascender1729
parent f5c2de1e4a
commit 248a943c5a

@ -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)

Loading…
Cancel
Save