Describes the common properties of all the chunk types streamed in a chat response. The different chunk types form a a discriminated union type StreamedChatResponse.

interface BaseChunk {
    id: string;
    model: string;
    type: string;
}

Hierarchy (View Summary)

Properties

Properties

id: string

The unique identifier for the streaming response.

model: string

The model used to generate the response.

type: string

The type of chunk. Either message_start, content_chunk, citation, or message_end.