AAI SDK
    Preparing search index...

    Type Alias Message

    A single message in the conversation history.

    Messages are passed to tool execute functions via ToolContext.messages to provide conversation context.

    type Message = {
        content: string;
        role: "user" | "assistant" | "tool";
    }
    Index
    content: string

    The text content of the message.

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

    The role of the message sender.