Interrupt
Defined in: src/interrupt.ts:20
Represents an interrupt that can pause agent execution for human-in-the-loop workflows.
Properties
Section titled “Properties”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.
reason?
Section titled “reason?”readonly optional reason?: JSONValue;Defined in: src/interrupt.ts:34
User-provided reason for raising the interrupt.
response?
Section titled “response?”optional response?: JSONValue;Defined in: src/interrupt.ts:39
Human response provided when resuming the agent after an interrupt.
Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON(): { id: string; name: string; reason?: JSONValue; response?: JSONValue;};Defined in: src/interrupt.ts:55
Serializes the interrupt to a JSON-compatible object.
Returns
Section titled “Returns”{ id: string; name: string; reason?: JSONValue; response?: JSONValue;}| Name | Type | Defined in |
|---|---|---|
id | string | src/interrupt.ts:55 |
name | string | src/interrupt.ts:55 |
reason? | JSONValue | src/interrupt.ts:55 |
response? | JSONValue | src/interrupt.ts:55 |