Optional schema for tool calling agent #28107
Replies: 3 comments 5 replies
-
Hey @yos1p, I'm here to help you out with any bugs, questions, or contributions you have regarding LangChain AgentExecutor. Let's tackle this issue together! I found a similar issue titled "AgentExecutor fails to use StructuredTool" which might be related to your problem. This issue is closed and was last updated on October 27, 2024. You can check it out for any insights or solutions that might apply to your situation here [1]. |
Beta Was this translation helpful? Give feedback.
-
@yos1p Are you using |
Beta Was this translation helpful? Give feedback.
-
@dosu Does StructuredTool schema allows Optional variable? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have been using LangChain AgentExecutor for a while and I noticed that when LLM generated not all of the schema, the tool call will fail.
For example, I have a tool / function with 3 variables
(a, b, c)
and thec
variable to be optional. If the LLM generated both function argument witha, b, c
, then the tool call works. But if the argument is onlya, b
, the tool call doesn't work.Is there a way for us to let LangChain AgentExecutor to execute the tool even though
c
was not provided?Beta Was this translation helpful? Give feedback.
All reactions