Saltar al contenido principal

Interface: AiMessage

Defined in: src/types/index.ts:695

A chat message. tool_calls and tool_call_id use snake_case on purpose: they mirror the OpenAI-compatible protocol so messages pass through unchanged.

Properties

content

content: string | null

Defined in: src/types/index.ts:697


name?

optional name?: string

Defined in: src/types/index.ts:700


role

role: AiRole

Defined in: src/types/index.ts:696


tool_call_id?

optional tool_call_id?: string

Defined in: src/types/index.ts:699


tool_calls?

optional tool_calls?: AiToolCall[]

Defined in: src/types/index.ts:698