@threadplane/langgraphInterfacev0.3.4

Interrupt

An interrupt thrown inside a thread.

import type { Interrupt } from '@threadplane/langgraph';

Declaration

interface Interrupt<TValue = unknown>  {
  id?: string;
  namespace?: string[];
  ns?: string[];
  resumable?: boolean;
  value?: TValue;
  when?: "during" | (string & {});
}

Type parameters

TValue
Default: unknown

Members

id

The ID of the interrupt.

id?: string;

namespace

Protocol namespace tuple for resume targeting ([] at root). Populated for nested subgraph / subagent interrupts so respond({ interruptId }) can resume without a separate getThread()?.interrupts lookup.

namespace?: string[];

ns

The namespace of the interrupt.

Deprecated

Replaced by interrupt_id

ns?: string[];

resumable

Whether the interrupt can be resumed.

Deprecated

Will be removed in the future.

resumable?: boolean;

value

The value of the interrupt.

value?: TValue;

when

Will be deprecated in the future.

Deprecated

Will be removed in the future.

when?: "during" | (string & {});