LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Graphs
    • Functional API
    • Pregel
    • Checkpointing
    • Storage
    • Caching
    • Types
    • Runtime
    • Config
    • Errors
    • Constants
    • Channels
    • Agents
    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewGraphsFunctional APIPregelCheckpointingStorageCachingTypesRuntimeConfigErrorsConstantsChannelsAgents
    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    PythonlanggraphtypesInterrupt
    Classā—Since v0.2

    Interrupt

    Copy
    Interrupt(
      self,
      value: Any,
      id: str = _DEFAULT_INTERRUPT_ID,
      *,
      response_schema: type

    Bases

    Generic[ResponseT]

    Used in Docs

    • Streaming

    Constructors

    Attributes

    Methods

    View source on GitHub
    [
    ResponseT
    ]
    |
    dict
    [
    str
    ,
    Any
    ]
    |
    None
    =
    None
    ,
    **
    deprecated_kwargs
    :
    Unpack
    [
    DeprecatedKwargs
    ]
    =
    {
    }
    )
    constructor
    __init__
    NameType
    valueAny
    idstr
    response_schematype[ResponseT] | dict[str, Any] | None
    attribute
    value: Any

    The value associated with the interrupt.

    attribute
    id: str

    The ID of the interrupt. Can be used to resume the interrupt directly.

    attribute
    response_schema: type[ResponseT] | dict[str, Any] | None

    Schema for the value expected when resuming this interrupt, if the graph provided one.

    A surfaced interrupt carries JSON Schema (a dict); type[ResponseT] records the Python type at construction so Interrupt[Decision] is meaningful to type checkers.

    attribute
    interrupt_id: str
    method
    from_ns

    Information about an interrupt that occurred in a node.

    Changed in version v0.4.0
    • interrupt_id was introduced as a property
    Changed in version v0.6.0

    The following attributes have been removed:

    • ns
    • when
    • resumable
    • interrupt_id, deprecated in favor of id