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

    Chat LangChain

    What can I help with?

    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
    PythonlanggrapherrorsUnknownInterruptError
    Classโ—Since v1.2

    UnknownInterruptError

    Copy
    UnknownInterruptError(
      self,
      message: str,
      *,
      reason: Literal['not_pending', 'empty_map', 'ambiguous'],

    Bases

    Exception

    Constructors

    Attributes

    View source on GitHub
    interrupt_ids
    :
    Sequence
    [
    str
    ]
    =
    (
    )
    ,
    pending_ids
    :
    Sequence
    [
    str
    ]
    =
    (
    )
    )
    constructor
    __init__
    NameType
    messagestr
    reasonLiteral['not_pending', 'empty_map', 'ambiguous']
    interrupt_idsSequence[str]
    pending_idsSequence[str]
    attribute
    reason: Literal['not_pending', 'empty_map', 'ambiguous']
    attribute
    interrupt_ids: tuple[str, ...]
    attribute
    pending_ids: tuple[str, ...]

    Raised in strict resume mode when a resume doesn't match the pending interrupts.

    reason says how it doesn't match:

    • "not_pending": the resume names interrupts that aren't pending, listed in interrupt_ids.
    • "empty_map": the resume is an empty map.
    • "ambiguous": the resume is a single value while several interrupts are pending.

    pending_ids lists the interrupts still waiting for an answer. The error is raised before anything is written, so they can still be answered.

    A single value with no interrupt pending is accepted, because it resumes a graph paused at a static breakpoint (interrupt_before or interrupt_after).

    The interrupts one task raises share an id, so an answer retried after the task asked its next question answers that question.