Interface Message

A single chat message in a conversation history. Mirrors the OpenAI / Anthropic message shape accepted by provider adapters.

interface Message {
    role: "user" | "assistant" | "system" | "tool";
    content: string;
}

Properties

Properties

role: "user" | "assistant" | "system" | "tool"

Role of the message author.

content: string

Plain-text or serialised-JSON content of the message.