You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a function to call, with parameter (a,b,c), but the parameter c is optional. I have defined it in Zod schema.
What I noticed is that AgentExecutor will only call the function when all arguments are given, but when only (a,b) are given, the function was not called.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm using Langchain JS 0.2, following this documentation: https://js.langchain.com/v0.2/docs/how_to/custom_tools/
I have a function to call, with parameter
(a,b,c)
, but the parameterc
is optional. I have defined it in Zod schema.What I noticed is that AgentExecutor will only call the function when all arguments are given, but when only
(a,b)
are given, the function was not called.Any reason why?
Beta Was this translation helpful? Give feedback.
All reactions