Polyman Documentation - v3.1.0
    Preparing search index...

    Interface Message

    A single message in a conversation.

    interface Message {
        id: string;
        role: "user" | "assistant" | "tool";
        parts: ContentPart[];
        createdAt: string;
    }
    Index
    id: string

    Unique id of the message within the conversation.

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

    Who produced the message. Tool results use the tool role.

    parts: ContentPart[]

    The content, in order.

    createdAt: string

    ISO 8601 creation time.