Interface: BaseSegment
Defined in: packages/core/src/stream-segments/types.ts:9
Extended by
UserSegmentTextSegmentToolCallSegmentReasoningSegmentStructuredOutputSegmentErrorSegmentDoneSegmentSkillSegmentDecisionSegment
Properties
agentId?
optionalagentId?:string
Defined in: packages/core/src/stream-segments/types.ts:14
Set in group chat.
agentName?
optionalagentName?:string
Defined in: packages/core/src/stream-segments/types.ts:15
avatarEmoji?
optionalavatarEmoji?:string
Defined in: packages/core/src/stream-segments/types.ts:16
id
id:
string
Defined in: packages/core/src/stream-segments/types.ts:10
step?
optionalstep?:number
Defined in: packages/core/src/stream-segments/types.ts:24
The model step (0-based, within its turn) that produced this segment.
History stamps it when the step finishes, so a turn is rebuilt for the
next request one step at a time, in the order it was sent (see
deriveAPIMessages). Absent on segments stored without it, which are
rebuilt as one assistant message per turn.
timestamp
timestamp:
number
Defined in: packages/core/src/stream-segments/types.ts:12
Epoch milliseconds.