InterruptResponseContent
Defined in: src/types/interrupt.ts:82
Content block containing a user response to an interrupt. Used when invoking an agent to resume from an interrupted state.
Example
Section titled “Example”const content = new InterruptResponseContent({ interruptId: interrupt.id, response: 'approved',})Implements
Section titled “Implements”InterruptResponseContentDataJSONSerializable<InterruptResponseContentData>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new InterruptResponseContent(data): InterruptResponseContent;Defined in: src/types/interrupt.ts:95
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
data | InterruptResponse |
Returns
Section titled “Returns”InterruptResponseContent
Properties
Section titled “Properties”readonly type: "interruptResponseContent";Defined in: src/types/interrupt.ts:88
Discriminator for interrupt response content blocks.
interruptResponse
Section titled “interruptResponse”readonly interruptResponse: InterruptResponse;Defined in: src/types/interrupt.ts:93
The interrupt response data.
Implementation of
Section titled “Implementation of”InterruptResponseContentData.interruptResponse
Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON(): InterruptResponseContentData;Defined in: src/types/interrupt.ts:103
Serializes to a JSON-compatible InterruptResponseContentData object.
Called automatically by JSON.stringify().
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”JSONSerializable.toJSONfromJSON()
Section titled “fromJSON()”static fromJSON(data): InterruptResponseContent;Defined in: src/types/interrupt.ts:113
Creates an InterruptResponseContent instance from data.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
data | InterruptResponseContentData | Data to deserialize |
Returns
Section titled “Returns”InterruptResponseContent
InterruptResponseContent instance