Skip to main content

Interface: ReasoningSegment

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

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


avatarEmoji?​

optional avatarEmoji?: string

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

Inherited from​

BaseSegment.avatarEmoji


content​

content: string

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


id​

id: string

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

Inherited from​

BaseSegment.id


isStreaming​

isStreaming: boolean

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


producer?​

optional producer?: object

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

The provider and model that produced the block.

model​

model: string

provider​

provider: string


providerMetadata?​

optional providerMetadata?: Record<string, unknown>

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

The provider's metadata for the finished block (an Anthropic signature or redactedData), so a rebuilt turn resends it exactly. Only replayed to the same producer; any other model gets the step without it.


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: "reasoning"

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