Skip to content

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.

const content = new InterruptResponseContent({
interruptId: interrupt.id,
response: 'approved',
})
new InterruptResponseContent(data): InterruptResponseContent;

Defined in: src/types/interrupt.ts:95

| Parameter | Type | | --------- | -------------------------------------------- | | data | InterruptResponse |

InterruptResponseContent

readonly type: "interruptResponseContent";

Defined in: src/types/interrupt.ts:88

Discriminator for interrupt response content blocks.


readonly interruptResponse: InterruptResponse;

Defined in: src/types/interrupt.ts:93

The interrupt response data.

InterruptResponseContentData.interruptResponse

toJSON(): InterruptResponseContentData;

Defined in: src/types/interrupt.ts:103

Serializes to a JSON-compatible InterruptResponseContentData object. Called automatically by JSON.stringify().

InterruptResponseContentData

JSONSerializable.toJSON

static fromJSON(data): InterruptResponseContent;

Defined in: src/types/interrupt.ts:113

Creates an InterruptResponseContent instance from data.

| Parameter | Type | Description | | --------- | ------------------------------------------------------------------ | ------------------- | | data | InterruptResponseContentData | Data to deserialize |

InterruptResponseContent

InterruptResponseContent instance