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: MessageContent;
}

Properties

Properties

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

Role of the message author.

content: MessageContent

Content of the message. String for text-only, array for multimodal (images + text).