Request
Table of Contents
Classes
- CallToolRequest
- Used by the client to invoke a tool provided by the server.
- CompletionCompleteRequest
- A request from the client to the server, to ask for completion options.
- CreateSamplingMessageRequest
- A request from the server to sample an LLM via the client. The client has full discretion over which model to select.
- ElicitRequest
- A request from the server to elicit additional information from the user.
- GetPromptRequest
- Used by the client to get a prompt provided by the server.
- InitializeRequest
- This request is sent from the client to the server when it first connects, asking it to begin initialization.
- ListPromptsRequest
- Sent from the client to request a list of prompts and prompt templates the server has.
- ListResourcesRequest
- Sent from the client to request a list of resources the server has.
- ListResourceTemplatesRequest
- Sent from the client to request a list of resource templates the server has.
- ListRootsRequest
- Sent from the server to request a list of root URIs from the client. Roots allow
servers to ask for specific directories or files to operate on. A common example
for roots is providing a set of repositories or directories a server should operate
on.
- ListToolsRequest
- Sent from the client to request a list of tools the server has.
- PingRequest
- A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must
promptly respond, or else may be disconnected.
- ReadResourceRequest
- Sent from the client to the server, to read a specific resource URI.
- ResourceSubscribeRequest
- Sent from the client to request resources/updated notifications from the server whenever a particular resource
changes.
- ResourceUnsubscribeRequest
- Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a
previous resources/subscribe request.
- SetLogLevelRequest
- A request from the client to the server, to enable or adjust logging.