Skip to main content

Module text

Module text 

Source
Expand description

Streaming assistant text: TEXT_MESSAGE_*.

Structs§

TextMessageChunkEvent
A self-contained text update: start, content and end folded into one event.
TextMessageContentEvent
Appends a chunk of text to an open message.
TextMessageEndEvent
Closes a text message.
TextMessageStartEvent
Opens a text message. Every following TEXT_MESSAGE_CONTENT with the same message_id appends to it, until TEXT_MESSAGE_END.

Enums§

TextMessageRole
The roles a streamed text message may carry.