Interface: ToolCallSegment
Defined in: packages/core/src/stream-segments/types.ts:37
Tool call segment (covers full lifecycle)
Extends
Properties
agentId?
optionalagentId?:string
Defined in: packages/core/src/stream-segments/types.ts:20
Agent that produced this segment (populated in group chat contexts)
Inherited from
agentName?
optionalagentName?:string
Defined in: packages/core/src/stream-segments/types.ts:22
Display name of the agent
Inherited from
args?
optionalargs?:unknown
Defined in: packages/core/src/stream-segments/types.ts:44
Parsed arguments passed to the tool
avatarEmoji?
optionalavatarEmoji?:string
Defined in: packages/core/src/stream-segments/types.ts:24
Avatar emoji for display
Inherited from
childSegments?
optionalchildSegments?:StreamSegment[]
Defined in: packages/core/src/stream-segments/types.ts:56
Child segments for recursive tool calls (spawn_agent, pipelines, etc.)
error?
optionalerror?:string
Defined in: packages/core/src/stream-segments/types.ts:52
Error message if the tool call failed
id
id:
string
Defined in: packages/core/src/stream-segments/types.ts:16
Unique identifier for React keys
Inherited from
name
name:
string
Defined in: packages/core/src/stream-segments/types.ts:42
Tool function name (e.g. 'spawn_agent', 'search')
rawArgs?
optionalrawArgs?:string
Defined in: packages/core/src/stream-segments/types.ts:46
Raw JSON arguments as streamed (unparsed)
result?
optionalresult?:unknown
Defined in: packages/core/src/stream-segments/types.ts:50
Return value from the tool execution
status
status:
"completed"|"running"|"failed"
Defined in: packages/core/src/stream-segments/types.ts:54
Status for display
streamingOutput?
optionalstreamingOutput?:string
Defined in: packages/core/src/stream-segments/types.ts:48
Live streamed output chunks before final result
timestamp
timestamp:
number
Defined in: packages/core/src/stream-segments/types.ts:18
Timestamp for ordering
Inherited from
toolCallId
toolCallId:
string
Defined in: packages/core/src/stream-segments/types.ts:40
Provider-assigned identifier for this tool call
type
type:
"tool_call"
Defined in: packages/core/src/stream-segments/types.ts:38