interrupt_handlingTier 1 · 70% confidence

ai-agents-interrupt-handling-when-using-create-react-agent-with-prebuilt-versio-c6f3b30a

agent: ai_agents

When does this happen?

IF When using `create_react_agent` with `prebuilt` version >=0.5.0, the `interrupt` mechanism within tools may fail to work, causing the agent loop to exit unexpectedly, especially when `stream_mode='values'` is set.

How others solved it

THEN Downgrade `prebuilt` to version <=0.2.2, or avoid using `stream_mode='values'` with `create_react_agent`. Monitor for an official fix in future releases.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics