output
    Preparing search index...

    Type Alias PromptMessage

    Represents a single message in a prompt conversation.

    const msg: PromptMessage = {
    role: 'user',
    content: 'Hello, Claude!'
    };
    type PromptMessage = {
        attributes?: Record<string, string | true>;
        content: string;
        role: string;
    }
    Index

    Properties

    attributes?: Record<string, string | true>

    Parsed opening-tag attributes for the block. Currently options — a space-separated list of frontmatter messageOptions set names — which is resolved into per-message providerOptions at call time and stripped before the request is sent. Authored as <system options="set_a set_b">.

    content: string

    The content of the message

    role: string

    The role of the message. Examples include 'system', 'user', and 'assistant'.