Interface: DecisionSegment
Defined in: packages/core/src/stream-segments/types.ts:255
Decision segment — a point-in-time marker that one decision processor
was asked and answered. Rendered inline in a timeline like a tool-call chip.
Produced from the decision_answered stream event.
Extends
Properties
agentId?
optionalagentId?:string
Defined in: packages/core/src/stream-segments/types.ts:14
Set in group chat.
Inherited from
agentName?
optionalagentName?:string
Defined in: packages/core/src/stream-segments/types.ts:15
Inherited from
answers
answers:
object[]
Defined in: packages/core/src/stream-segments/types.ts:262
One entry per question, in the order they were declared.
choice?
optionalchoice?:string
The selected label. Choice answers only.
confidence?
optionalconfidence?:number
The provider's confidence, where it reports one.
question
question:
string
The question's name, as declared in the question set.
type
type:
"choice"|"noul"|"score"
value?
optionalvalue?:number
The Noul probability, or the score. Absent for a choice.
avatarEmoji?
optionalavatarEmoji?:string
Defined in: packages/core/src/stream-segments/types.ts:16
Inherited from
decision
decision:
string
Defined in: packages/core/src/stream-segments/types.ts:258
The decision processor that asked.
id
id:
string
Defined in: packages/core/src/stream-segments/types.ts:10
Inherited from
model
model:
string
Defined in: packages/core/src/stream-segments/types.ts:260
The model that answered.
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.
Inherited from
timestamp
timestamp:
number
Defined in: packages/core/src/stream-segments/types.ts:12
Epoch milliseconds.
Inherited from
type
type:
"decision"
Defined in: packages/core/src/stream-segments/types.ts:256