deepseek Swarm parallel tool calls #4410
Unanswered
LoveIsLive
asked this question in
Q&A
Replies: 1 comment
-
parallel tool calls only works for openai models |
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.
-
My Deepseek big model returns two tool_calls, and parallel_tool_calls=False has no effect
Code from https://langchain-ai.github.io/langgraph/agents/multi-agent/#handoffs
Error:
ValueError: Found AIMessages with tool_calls that do not have a corresponding ToolMessage. Here are the first few of those tool calls: [{'name': 'book_flight', 'args': {'from_airport': 'BOS', 'to_airport': 'JFK'}, 'id': 'call_0_826ae813-27ca-4943-b634-de9cd9a1c69f', 'type': 'tool_call'}].
Every tool call (LLM requesting to call a tool) in the message history MUST have a corresponding ToolMessage (result of a tool invocation to return to the LLM) - this is required by most LLM providers.
For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/INVALID_CHAT_HISTORY
During task with name 'agent' and id '4fd28bf8-33c9-c779-ab2e-05c0fb8a13e4'
During task with name 'hotel_assistant' and id 'd20ed6c3-6e4a-b728-14f2-5ccd050edb7d'
smith:
flight assistant deepseek output:
hotel assistant agent input:
Beta Was this translation helpful? Give feedback.
All reactions