@modelcontextprotocol/sdk
    Preparing search index...

    Interface CreateMessageRequest

    A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it.

    interface CreateMessageRequest {
        id: RequestId;
        jsonrpc: "2.0";
        method: "sampling/createMessage";
        params: CreateMessageRequestParams;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    jsonrpc: "2.0"
    method: "sampling/createMessage"