Skip to main content

Interface: DecisionSegment

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

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:20

Agent that produced this segment (populated in group chat contexts)

Inherited from

BaseSegment.agentId


agentName?

optional agentName?: string

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

Display name of the agent

Inherited from

BaseSegment.agentName


answers

answers: object[]

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

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:24

Avatar emoji for display

Inherited from

BaseSegment.avatarEmoji


decision

decision: string

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

The decision processor that asked.


id

id: string

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

Unique identifier for React keys

Inherited from

BaseSegment.id


model

model: string

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

The model that answered.


timestamp

timestamp: number

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

Timestamp for ordering

Inherited from

BaseSegment.timestamp


type

type: "decision"

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