Skip to main content

Interface: UIChatMessage

Defined in: packages/core/src/providers/types.ts:372

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: packages/core/src/providers/types.ts:389

Multi-agent attribution (set by useGroupChat)


agentName?

optional agentName?: string

Defined in: packages/core/src/providers/types.ts:390


avatarEmoji?

optional avatarEmoji?: string

Defined in: packages/core/src/providers/types.ts:391


content

content: string | MessageContentBlock[]

Defined in: packages/core/src/providers/types.ts:375


id

id: string

Defined in: packages/core/src/providers/types.ts:373


role

role: MessageRole

Defined in: packages/core/src/providers/types.ts:374


timestamp?

optional timestamp?: Date

Defined in: packages/core/src/providers/types.ts:376


tool_call_id?

optional tool_call_id?: string

Defined in: packages/core/src/providers/types.ts:377


tool_calls?

optional tool_calls?: object[]

Defined in: packages/core/src/providers/types.ts:378

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"