@modelcontextprotocol/sdk
    Preparing search index...

    Interface CreateMessageResult

    The client's response to a sampling/create_message request from the server. The client should inform the user before returning the sampled message, to allow them to inspect the response (human in the loop) and decide whether to allow the server to see it.

    interface CreateMessageResult {
        _meta?: { [key: string]: unknown };
        content: TextContent | ImageContent | AudioContent;
        model: string;
        role: Role;
        stopReason?: string;
        [key: string]: unknown;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: unknown
    Index

    Properties

    _meta?: { [key: string]: unknown }

    See General fields: _meta for notes on _meta usage.

    model: string

    The name of the model that generated the message.

    role: Role
    stopReason?: string

    The reason why sampling stopped, if known.