pub enum ServerRequest {
PingRequest(PingRequest),
CreateMessageRequest(CreateMessageRequest),
ListRootsRequest(ListRootsRequest),
}
Expand description
Generated from JSON schema definition for ServerRequest
Variants§
PingRequest(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.
CreateMessageRequest(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.
ListRootsRequest(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.
This request is typically used when the server needs to understand the file system structure or access specific locations that the client has permission to read from.
Trait Implementations§
Source§impl Clone for ServerRequest
impl Clone for ServerRequest
Source§fn clone(&self) -> ServerRequest
fn clone(&self) -> ServerRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more