Interface: UIChatMessage
Defined in: packages/core/src/providers/types.ts:228
A chat message with the fields a UI needs for display and state.
Properties
agentId?
optionalagentId?:string
Defined in: packages/core/src/providers/types.ts:245
Multi-agent / group attribution
agentName?
optionalagentName?:string
Defined in: packages/core/src/providers/types.ts:246
avatarEmoji?
optionalavatarEmoji?:string
Defined in: packages/core/src/providers/types.ts:247
content
content:
string|MessageContentBlock[]
Defined in: packages/core/src/providers/types.ts:231
id
id:
string
Defined in: packages/core/src/providers/types.ts:229
role
role:
MessageRole
Defined in: packages/core/src/providers/types.ts:230
timestamp?
optionaltimestamp?:Date
Defined in: packages/core/src/providers/types.ts:232
tool_call_id?
optionaltool_call_id?:string
Defined in: packages/core/src/providers/types.ts:233
tool_calls?
optionaltool_calls?:object[]
Defined in: packages/core/src/providers/types.ts:234
function
function:
object
function.arguments
arguments:
string
function.name
name:
string
id
id:
string
result?
optionalresult?:unknown
Tool execution result (consolidated format for UI display)
type
type:
"function"