LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangGraph
  • Web
  • Channels
  • Pregel
  • Prebuilt
  • Remote
  • Stream
LangGraph SDK
  • Client
  • Auth
  • React
  • Logging
  • React Ui
  • Server
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
LangGraph Checkpoint Redis
  • Shallow
  • Store
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
  • Cli
LangGraph API
LangGraph CLI
LangGraph CUA
  • Utils
LangGraph Supervisor
LangGraph Swarm
⌘I

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

LangGraph
WebChannelsPregelPrebuiltRemoteStream
LangGraph SDK
ClientAuthReactLoggingReact UiServer
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
LangGraph Checkpoint Redis
ShallowStore
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
Cli
LangGraph API
LangGraph CLI
LangGraph CUA
Utils
LangGraph Supervisor
LangGraph Swarm
Language
Theme
JavaScript@langchain/langgraphindexUnknownInterruptError
Class●Since v1.7

UnknownInterruptError

Raised in strict resume mode when a resume doesn't match the pending interrupts. reason says how:

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

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

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

Copy
class UnknownInterruptError

Bases

BaseLangGraphError

Constructors

constructor
constructor→ UnknownInterruptError

Properties

property
cause: unknown
property
interruptIds: string[]
property
lc_error_code: string
property
message: string
property
name: string
property
pendingIds: string[]
property
reason: "not_pending" | "empty_map" | "ambiguous"
property
stack: string
property
stackTraceLimit: number
property
unminifiable_name: string

Methods

method
captureStackTrace
method
prepareStackTrace

Inherited fromBaseLangGraphError

Properties

PcausePlc_error_code: stringPmessagePname: stringPstackPstackTraceLimit

Methods

McaptureStackTraceMprepareStackTrace
View source on GitHub