TanStack

INTERRUPT_BINDING_VERSION

Variable: INTERRUPT_BINDING_VERSION

ts
const INTERRUPT_BINDING_VERSION: 1;

Defined in: packages/ai/src/interrupts.ts:79

Wire version of InterruptBinding.

The binding is the only part of an AG-UI Interrupt that this package claims — it rides in metadata under INTERRUPT_BINDING_METADATA_KEY and tells the resume path how to correlate an answer back to a paused run. Producers stamp v; readers reject any version they don't understand rather than duck-typing the fields.

That matters because an AG-UI Interrupt is a shared envelope. Another producer — a workflow engine projecting a durable approval, a third-party agent — can legitimately put its own binding in the same envelope. Versioning makes "not mine" a clean rejection instead of a partial match that resumes against the wrong owner.