pub struct InitializeResult {
pub meta: Option<Map<String, Value>>,
pub capabilities: ServerCapabilities,
pub instructions: Option<String>,
pub protocol_version: String,
pub server_info: Implementation,
pub extra: Map<String, Value>,
}
Expand description
After receiving an initialize request from the client, the server sends this response.
Fields§
§meta: Option<Map<String, Value>>
This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
capabilities: ServerCapabilities
§instructions: Option<String>
Instructions describing how to use the server and its features.
This can be used by clients to improve the LLM’s understanding of available tools, resources, etc. It can be thought of like a “hint” to the model. For example, this information MAY be added to the system prompt.
protocol_version: String
The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect.
server_info: Implementation
§extra: Map<String, Value>
Additional parameters that are not part of the schema.
Trait Implementations§
Source§impl Clone for InitializeResult
impl Clone for InitializeResult
Source§fn clone(&self) -> InitializeResult
fn clone(&self) -> InitializeResult
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InitializeResult
impl Debug for InitializeResult
Source§impl<'de> Deserialize<'de> for InitializeResult
impl<'de> Deserialize<'de> for InitializeResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InitializeResult
impl PartialEq for InitializeResult
Source§impl Serialize for InitializeResult
impl Serialize for InitializeResult
impl StructuralPartialEq for InitializeResult
Auto Trait Implementations§
impl Freeze for InitializeResult
impl RefUnwindSafe for InitializeResult
impl Send for InitializeResult
impl Sync for InitializeResult
impl Unpin for InitializeResult
impl UnwindSafe for InitializeResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more