Skip to content

basalt / ai/src / AIMessage

Interface: AIMessage ​

Defined in: ai/src/provider/types.ts:8

Provider-agnostic AI surface.

The agent never talks to a vendor SDK directly — every piece of it depends on this interface. Swapping Anthropic ↔ Ollama ↔ an OpenAI-compatible endpoint is therefore an AI_PROVIDER config change, not a code change (spec §17).

Properties ​

content ​

> content: string

Defined in: ai/src/provider/types.ts:10


role ​

> role: "system" | "user" | "assistant"

Defined in: ai/src/provider/types.ts:9

Released under the MIT License.