Interface: DoneSegment
Defined in: packages/core/src/stream-segments/types.ts:217
Completion segment - signals end of response with explicit reason
Extends
Properties
agentId
agentId:
string
Defined in: packages/core/src/stream-segments/types.ts:229
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:220
durationDisplay
durationDisplay:
string
Defined in: packages/core/src/stream-segments/types.ts:224
error?
optionalerror?:object
Defined in: packages/core/src/stream-segments/types.ts:232
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:227
parentAgentId?
optionalparentAgentId?:string
Defined in: packages/core/src/stream-segments/types.ts:230
reason
reason:
"error"|"turn_yielded"|"out_of_iterations"|"max_tokens_reached"|"interrupted"|"awaiting_interrupt"|"no_applicable_tools"|"max_depth_reached"|"graceful_shutdown"
Defined in: packages/core/src/stream-segments/types.ts:219
reasonDisplay
reasonDisplay:
string
Defined in: packages/core/src/stream-segments/types.ts:223
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:228
type
type:
"done"
Defined in: packages/core/src/stream-segments/types.ts:218