Error: "messages with role 'tool' must respond to preceding 'tool_calls'" when using ChatTongyi, but works with init_chat_model #4686
Replies: 1 comment
-
请问这个问题最后是怎么解决的 @About-Gleaning |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When using the
ChatTongyi
created LLM in our multi-agent framework (router → react → StateGraph), the React Agent fails at the final step of returning results to the Router Agent. The error ismessages with role "tool" must be a response to a preceeding message with "tool_calls"
. This issue does not manifest when usinginit_chat_model
created LLM.my code:
error:
Beta Was this translation helpful? Give feedback.
All reactions