Interface MessageStartChunk

Describes the start of a streamed message in a chat response.

interface MessageStartChunk {
    id: string;
    model: string;
    role: string;
    type: "message_start";
}

Hierarchy (View Summary)

Properties

Properties

id: string

The unique identifier for the streaming response.

model: string

The model used to generate the response.

role: string

The role of the message sender. Either user or assistant.

type: "message_start"

The type of the chunk indicating the beginning of the stream.