Skip to content

TextStreamInterfaceTextStreamMessage

HTTP API schema

← HTTP API reference

A chunk of streamed text, with its stream ID and sequence, and whether it is the final chunk.

TextStreamInterfaceTextStreamMessage fields

streamIdstringRequired

Unique identifier for this text stream

minLength: 1

sequenceIdintegerRequired

Sequence ID for this text stream

minimum: 0

isFinalbooleanRequired

Whether this is the final chunk in the stream

Default: false

textstringRequired
View source specification ↗