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 added a very descriptive title to this question.
I searched the LangChain documentation with the integrated search.
I used the GitHub search to find a similar question and didn't find it.
Commit to Help
I commit to help with one of those options 👆
Example Code
consttools=[tool(toolFn,toolSchema)];constllm=newSomeLLM();constprompt=awaitpull<PromptTemplate>("hwchase17/react");constagent=awaitcreateReactAgent({
llm,
tools,
prompt,});constagentExecutor=newAgentExecutor({
agent,
tools,});constresult=awaitagentExecutor.invoke({input: "use the tool to search for 'langchain'",});console.log(result);
Description
I expect the react agent to automatically handles tool calling for me even if the llm doesn't support native tool calls
However, since renderTextDescription doesn't contain descriptions of how to construct tool call arguments, the llm will return in random format, which cannot be correctly parsed later, and leads to an error ToolInputParsingException [Error]: Received tool input did not match expected schema
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
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
ToolInputParsingException [Error]: Received tool input did not match expected schema
System Info
Beta Was this translation helpful? Give feedback.
All reactions