Skip to main content

Interface: ChatMessage

Defined in: src/server/ai/chat/types.ts:44

Properties

content

readonly content: string

Defined in: src/server/ai/chat/types.ts:47

Natural-language content. Empty string for an assistant turn that only calls tools.


role

readonly role: ChatRole

Defined in: src/server/ai/chat/types.ts:45


toolCalls?

readonly optional toolCalls?: readonly ToolCall[]

Defined in: src/server/ai/chat/types.ts:49

Set on assistant turns that requested tools.


toolResult?

readonly optional toolResult?: ToolResult

Defined in: src/server/ai/chat/types.ts:51

Set on role:'tool' turns — the result for one prior ToolCall.