Skip to main content

Interface: DoneSegment

Defined in: core/dist/types/stream-segments/types.d.ts:222

Completion segment - signals end of response with explicit reason

Extends

Properties

agentId

agentId: string

Defined in: core/dist/types/stream-segments/types.d.ts:230

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

Overrides

BaseSegment.agentId


agentName?

optional agentName?: string

Defined in: core/dist/types/stream-segments/types.d.ts:20

Display name of the agent

Inherited from

BaseSegment.agentName


avatarEmoji?

optional avatarEmoji?: string

Defined in: core/dist/types/stream-segments/types.d.ts:22

Avatar emoji for display

Inherited from

BaseSegment.avatarEmoji


duration_ms

duration_ms: number

Defined in: core/dist/types/stream-segments/types.d.ts:225


durationDisplay

durationDisplay: string

Defined in: core/dist/types/stream-segments/types.d.ts:227


error?

optional error?: object

Defined in: core/dist/types/stream-segments/types.d.ts:232

code

code: string

message

message: string


id

id: string

Defined in: core/dist/types/stream-segments/types.d.ts:14

Unique identifier for React keys

Inherited from

BaseSegment.id


iterationCount?

optional iterationCount?: number

Defined in: core/dist/types/stream-segments/types.d.ts:228


parentAgentId?

optional parentAgentId?: string

Defined in: core/dist/types/stream-segments/types.d.ts:231


reason

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

Defined in: core/dist/types/stream-segments/types.d.ts:224


reasonDisplay

reasonDisplay: string

Defined in: core/dist/types/stream-segments/types.d.ts:226


timestamp

timestamp: number

Defined in: core/dist/types/stream-segments/types.d.ts:16

Timestamp for ordering

Inherited from

BaseSegment.timestamp


tokensUsed?

optional tokensUsed?: number

Defined in: core/dist/types/stream-segments/types.d.ts:229


type

type: "done"

Defined in: core/dist/types/stream-segments/types.d.ts:223