issue with Resuming Interrupted Tool in LangGraph Multi-Agent Architecture #4341
Replies: 4 comments 4 replies
-
I prefer to add a field in state to store 'last end', when resume, skip the code executed |
Beta Was this translation helpful? Give feedback.
-
@Yash-Makwana1 if you are using prebuilt see implementation here https://github.com/langchain-ai/langgraph/blob/main/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py#L880 hope this helps! |
Beta Was this translation helpful? Give feedback.
-
@vbarda tool with interrupt:
Agent creation:
Supervisor creation:
But still the same issue persists langgraph version 0.3.18 |
Beta Was this translation helpful? Give feedback.
-
@hinthornw @vbarda can anyone provide a solution for this ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi LangGraph team,
I'm currently using LangGraph's multi-agent architecture. I'm facing an issue where, if I use interrupt() inside a tool of an agent (say, in the second tool of a node that calls multiple tools sequentially), then upon resuming, the entire node is re-executed. This results in the first tool being executed again, even though the interrupt was triggered in the second tool.
Is there a recommended way to resume from the exact point of interruption, without rerunning the previous tools in the same node?
Appreciate any guidance or workaround for this!
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions