JsonBlock
Defined in: src/types/messages.ts:383
JSON content block within a message. Used for structured data returned from tools or model responses.
Implements
Section titled “Implements”JsonBlockData
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new JsonBlock(data): JsonBlock;Defined in: src/types/messages.ts:394
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
data | JsonBlockData |
Returns
Section titled “Returns”JsonBlock
Properties
Section titled “Properties”readonly type: "jsonBlock";Defined in: src/types/messages.ts:387
Discriminator for JSON content.
readonly json: JSONValue;Defined in: src/types/messages.ts:392
Structured JSON data.
Implementation of
Section titled “Implementation of”JsonBlockData.json