{"record":{"id":"6689250a5f6f549a","repo":"langchain-ai/langgraph","slug":"nodeinterrupt-is-deprecated-please-use-langgraph","errorCode":null,"errorMessage":"NodeInterrupt is deprecated. Please use `langgraph.types.interrupt` instead.","messagePattern":"NodeInterrupt is deprecated\\. Please use `langgraph\\.types\\.interrupt` instead\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/errors.py","lineNumber":118,"sourceCode":"\n\nclass GraphInterrupt(GraphBubbleUp):\n    \"\"\"Raised when a subgraph is interrupted, suppressed by the root graph.\n    Never raised directly, or surfaced to the user.\"\"\"\n\n    def __init__(self, interrupts: Sequence[Interrupt] = ()) -> None:\n        super().__init__(interrupts)\n\n\n@deprecated(\n    \"NodeInterrupt is deprecated. Please use [`interrupt`][langgraph.types.interrupt] instead.\",\n    category=None,\n)\nclass NodeInterrupt(GraphInterrupt):\n    \"\"\"Raised by a node to interrupt execution.\"\"\"\n\n    def __init__(self, value: Any, id: str | None = None) -> None:\n        warn(\n            \"NodeInterrupt is deprecated. Please use `langgraph.types.interrupt` instead.\",\n            LangGraphDeprecatedSinceV10,\n            stacklevel=2,\n        )\n        if id is None:\n            super().__init__([Interrupt(value=value)])\n        else:\n            super().__init__([Interrupt(value=value, id=id)])\n\n\nclass ParentCommand(GraphBubbleUp):\n    args: tuple[Command]\n\n    def __init__(self, command: Command) -> None:\n        super().__init__(command)\n\n\nclass EmptyInputError(Exception):","sourceCodeStart":100,"sourceCodeEnd":136,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/errors.py#L100-L136","documentation":"Error \"NodeInterrupt is deprecated. Please use `langgraph.types.interrupt` instead.\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/langgraph/langgraph/errors.py:118 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"38031739e551638e373fb553453256c23feeb41f","analyzedAt":"2026-08-26T18:02:49.312Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}