Skip to main content

Interface: UIChatMessage

Defined in: core/dist/types/providers/types.d.ts:380

UI Chat message type - OpenAI's ChatMessage with UI-specific fields Used for frontend display and state management

Properties

agentId?

optional agentId?: string

Defined in: core/dist/types/providers/types.d.ts:397

Multi-agent / group attribution


agentName?

optional agentName?: string

Defined in: core/dist/types/providers/types.d.ts:398


avatarEmoji?

optional avatarEmoji?: string

Defined in: core/dist/types/providers/types.d.ts:399


content

content: string | MessageContentBlock[]

Defined in: core/dist/types/providers/types.d.ts:383


id

id: string

Defined in: core/dist/types/providers/types.d.ts:381


role

role: MessageRole

Defined in: core/dist/types/providers/types.d.ts:382


timestamp?

optional timestamp?: Date

Defined in: core/dist/types/providers/types.d.ts:384


tool_call_id?

optional tool_call_id?: string

Defined in: core/dist/types/providers/types.d.ts:385


tool_calls?

optional tool_calls?: object[]

Defined in: core/dist/types/providers/types.d.ts:386

function

function: object

function.arguments

arguments: string

function.name

name: string

id

id: string

result?

optional result?: unknown

Tool execution result (consolidated format for UI display)

type

type: "function"