Skip to content

Interrupt

Defined in: src/interrupt.ts:20

Represents an interrupt that can pause agent execution for human-in-the-loop workflows.

readonly id: string;

Defined in: src/interrupt.ts:24

Unique identifier for this interrupt.


readonly name: string;

Defined in: src/interrupt.ts:29

User-defined name for the interrupt.


readonly optional reason?: JSONValue;

Defined in: src/interrupt.ts:34

User-provided reason for raising the interrupt.


optional response?: JSONValue;

Defined in: src/interrupt.ts:39

Human response provided when resuming the agent after an interrupt.

toJSON(): {
id: string;
name: string;
reason?: JSONValue;
response?: JSONValue;
};

Defined in: src/interrupt.ts:55

Serializes the interrupt to a JSON-compatible object.

{
id: string;
name: string;
reason?: JSONValue;
response?: JSONValue;
}
NameTypeDefined in
idstringsrc/interrupt.ts:55
namestringsrc/interrupt.ts:55
reason?JSONValuesrc/interrupt.ts:55
response?JSONValuesrc/interrupt.ts:55