News Developer Tools

LangGraph 1.2.12 Adds Response Schema for interrupt() Calls

LangGraph 1.2.12 release adds a response_schema option to interrupt() and fixes subgraph detection from bytecode.

LangGraph has shipped version 1.2.12, adding a response_schema option to its interrupt() function so developers can define the expected shape of data returned when a workflow pauses for human input. LangChain, the project behind the open-source framework for building AI agent workflows, published the change on GitHub. The interrupt() function lets a running agent pause and wait for a person to supply information before continuing.

The release also fixes how LangGraph identifies subgraphs, smaller workflows nested inside a larger one. Previously this detection relied on reading source code; the update switches to reading compiled bytecode instead, according to the GitHub release notes, which should make the detection more reliable across different ways code is written or packaged.

Beyond those two changes, the release bundles routine maintenance: updates to several underlying dependencies, including the soupsieve, mistune, and tornado libraries, along with a fix for type handling in v3 stream projections. LangChain lists no other functional changes in this version. Developers using interrupt() in existing workflows can now specify a schema for the response they expect back, rather than handling unstructured input.

Source: Release langgraph==1.2.12 · langchain-ai/langgraph · GitHub.