Skip to content
1 min read · 219 words

Interface: TurnStreamableContent

Defined in: src/lib/types/turn_runner.ts:32

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.src/lib/types/turn_runner.ts:42
completedAt?DateTime<boolean>Timestamp when the stream completed. Absent until isComplete is true.src/lib/types/turn_runner.ts:46
createdAtDateTimeTimestamp when this content stream was first created.src/lib/types/turn_runner.ts:36
fullstringFull accumulated text received so far for this stream.src/lib/types/turn_runner.ts:40
idstringStable identifier for this content stream; groups deltas from the same generation.src/lib/types/turn_runner.ts:34
isCompletebooleantrue on the final chunk for this id; subsequent emissions will use a new id.src/lib/types/turn_runner.ts:44
updatedAtDateTimeTimestamp of the most recent delta received for this stream.src/lib/types/turn_runner.ts:38