Skip to content
1 min read · 219 words

Interface: TurnStreamableContent

Defined in: lib/types/turn_runner.ts:31

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

PropertyTypeDescriptionDefined in
aDeltastringIncremental text added since the previous emission.lib/types/turn_runner.ts:41
completedAt?DateTime<boolean>Timestamp when the stream completed. Absent until isComplete is true.lib/types/turn_runner.ts:45
createdAtDateTimeTimestamp when this content stream was first created.lib/types/turn_runner.ts:35
fullstringFull accumulated text received so far for this stream.lib/types/turn_runner.ts:39
idstringStable identifier for this content stream; groups deltas from the same generation.lib/types/turn_runner.ts:33
isCompletebooleantrue on the final chunk for this id; subsequent emissions will use a new id.lib/types/turn_runner.ts:43
updatedAtDateTimeTimestamp of the most recent delta received for this stream.lib/types/turn_runner.ts:37