Skip to main content

Interface: DoneSegment

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

Completion segment - signals end of response with explicit reason

Extends

Properties

agentId

agentId: string

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

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

Overrides

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


avatarEmoji?

optional avatarEmoji?: string

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

Avatar emoji for display

Inherited from

BaseSegment.avatarEmoji


duration_ms

duration_ms: number

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


durationDisplay

durationDisplay: string

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


error?

optional error?: object

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

code

code: string

message

message: string


id

id: string

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

Unique identifier for React keys

Inherited from

BaseSegment.id


iterationCount?

optional iterationCount?: number

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


parentAgentId?

optional parentAgentId?: string

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


reason

reason: "error" | "turn_yielded" | "out_of_iterations" | "max_tokens_reached" | "interrupted" | "no_applicable_tools" | "max_depth_reached" | "graceful_shutdown"

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


reasonDisplay

reasonDisplay: string

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


timestamp

timestamp: number

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

Timestamp for ordering

Inherited from

BaseSegment.timestamp


tokensUsed?

optional tokensUsed?: number

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


type

type: "done"

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