mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
fix tool calling issue (#1467)
* fix tool calling issue * Update tool type check * Drop print
This commit is contained in:
committed by
GitHub
parent
60efcad481
commit
84f48c465d
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user