Skip to main content

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?​

optional agentId?: string

Defined in: packages/core/src/stream-segments/types.ts:14

Set in group chat.

Inherited from​

BaseSegment.agentId


agentName?​

optional agentName?: string

Defined in: packages/core/src/stream-segments/types.ts:15

Inherited from​

BaseSegment.agentName


answers​

answers: object[]

Defined in: packages/core/src/stream-segments/types.ts:262

One entry per question, in the order they were declared.

choice?​

optional choice?: string

The selected label. Choice answers only.

confidence?​

optional confidence?: 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?​

optional value?: number

The Noul probability, or the score. Absent for a choice.


avatarEmoji?​

optional avatarEmoji?: string

Defined in: packages/core/src/stream-segments/types.ts:16

Inherited from​

BaseSegment.avatarEmoji


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​

BaseSegment.id


model​

model: string

Defined in: packages/core/src/stream-segments/types.ts:260

The model that answered.


step?​

optional step?: 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​

BaseSegment.step


timestamp​

timestamp: number

Defined in: packages/core/src/stream-segments/types.ts:12

Epoch milliseconds.

Inherited from​

BaseSegment.timestamp


type​

type: "decision"

Defined in: packages/core/src/stream-segments/types.ts:256