Interface: UIChatMessage
Defined in: packages/core/src/providers/types.ts:364
UI Chat message type - OpenAI's ChatMessage with UI-specific fields Used for frontend display and state management
Properties
agentId?
optionalagentId?:string
Defined in: packages/core/src/providers/types.ts:381
Multi-agent attribution (set by useGroupChat)
agentName?
optionalagentName?:string
Defined in: packages/core/src/providers/types.ts:382
avatarEmoji?
optionalavatarEmoji?:string
Defined in: packages/core/src/providers/types.ts:383
content
content:
string|MessageContentBlock[]
Defined in: packages/core/src/providers/types.ts:367
id
id:
string
Defined in: packages/core/src/providers/types.ts:365
role
role:
MessageRole
Defined in: packages/core/src/providers/types.ts:366
timestamp?
optionaltimestamp?:Date
Defined in: packages/core/src/providers/types.ts:368
tool_call_id?
optionaltool_call_id?:string
Defined in: packages/core/src/providers/types.ts:369
tool_calls?
optionaltool_calls?:object[]
Defined in: packages/core/src/providers/types.ts:370
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"