Describes a chunk containing a piece of message content.

interface ContentChunk {
    contentFilterResults?: ContentFilterResults;
    delta: { content: string };
    id: string;
    model: string;
    type: "content_chunk";
}

Hierarchy (View Summary)

Properties

contentFilterResults?: ContentFilterResults

The results of any content filtering applied to the response.

delta: { content: string }

The content delta, representing a portion of the message content.

id: string

The unique identifier for the streaming response.

model: string

The model used to generate the response.

type: "content_chunk"

The type of the chunk indicating content.