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
agentName?
optionalagentName?:string
Defined in: packages/core/src/stream-segments/types.ts:22
Display name of the agent
Inherited from
avatarEmoji?
optionalavatarEmoji?:string
Defined in: packages/core/src/stream-segments/types.ts:24
Avatar emoji for display
Inherited from
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?
optionalerror?: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
iterationCount?
optionaliterationCount?:number
Defined in: packages/core/src/stream-segments/types.ts:279
parentAgentId?
optionalparentAgentId?: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
tokensUsed?
optionaltokensUsed?:number
Defined in: packages/core/src/stream-segments/types.ts:280
type
type:
"done"
Defined in: packages/core/src/stream-segments/types.ts:270