Skip to content
1 min read · 197 words

Interface: TurnStreamableContent

A unit of streamable content emitted during a turn.

Remarks

Each emission represents either a visible assistant message or an internal reasoning trace. aDelta carries the incremental text since the last emission; full is the accumulated text so far. isComplete is true on the final emission for a given id.

Properties

PropertyTypeDescription
aDeltastringIncremental text added since the previous emission.
completedAt?DateTime<boolean>Timestamp when the stream completed. Absent until isComplete is true.
createdAtDateTimeTimestamp when this content stream was first created.
fullstringFull accumulated text received so far for this stream.
idstringStable identifier for this content stream; groups deltas from the same generation.
isCompletebooleantrue on the final chunk for this id; subsequent emissions will use a new id.
updatedAtDateTimeTimestamp of the most recent delta received for this stream.