LangChain revamps human-in-the-loop middleware with typed schemas for tool interrupts

Hacubu · x · 2026-10-16

LangChain's Sydney Runkle announced a revamped human-in-the-loop middleware: interrupts on tool calls now ship with typed schemas, so human responses are validated before returning to the agent, and schemas can render nicer approval forms in your UI.

The docs define four decision types — approve, edit, reject, and respond (a synthetic tool result for ask-user tools). Middleware checks each tool call against a configurable interrupton policy, pauses execution when needed, and uses LangGraph's persistence layer to safely save state and resume later.

Original post →

More from coding & agent

coding & agent channel →