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?
optionalname?:string
Defined in: src/types/index.ts:700
role
role:
AiRole
Defined in: src/types/index.ts:696
tool_call_id?
optionaltool_call_id?:string
Defined in: src/types/index.ts:699
tool_calls?
optionaltool_calls?:AiToolCall[]
Defined in: src/types/index.ts:698