fix tool calling issue (#1467)

* fix tool calling issue

* Update tool type check

* Drop print
This commit is contained in:
Brandon Hancock (bhancock_ai)
2024-10-18 14:56:56 -04:00
committed by GitHub
parent 60efcad481
commit 84f48c465d
4 changed files with 154 additions and 9 deletions

View File

@@ -394,7 +394,7 @@ class Agent(BaseAgent):
"""
tool_strings = []
for tool in tools:
args_schema = str(tool.args)
args_schema = str(tool.model_fields)
if hasattr(tool, "func") and tool.func:
sig = signature(tool.func)
description = (