langchain-ai / langchain

🦜🔗 Build context-aware reasoning applications
https://python.langchain.com
MIT License
93.08k stars 14.96k forks source link

{tool_name} is not a valid tool, try another one. #1559

Closed gcsun closed 7 months ago

gcsun commented 1 year ago

I encapsulated an agent into a tool ,and load it into another agent 。 when the second agent run, all the tools become invalid. After calling any tool, the output is “*** is not a valid tool, try another one.

why! agent cannot be a tool?

azaj01 commented 21 hours ago

Your prompt needs to have the tools and its names