how to use tool_calls info to really call a function? #7761
Replies: 1 comment 1 reply
-
Hey @miniboxhaha! I'm here to help you with any issues you're facing. If you need assistance with bugs, questions, or anything else, feel free to ask. To call the
This approach leverages the LangChain framework's capabilities to handle tool execution without the need for To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
Checked other resources
Commit to Help
Example Code
Description
i am confused is result.tool_calls contains an array of every fun name and input args
but how to use it to call multiply.invoke(input_args)?
is there any api in langchain? or i should use eval()?
or maybe i totally misunderstood tool calling?
can someone help? thanks a lot
System Info
platform (linux)
Node version 20.18.3
npm version 10.8.2
Beta Was this translation helpful? Give feedback.
All reactions