pub struct McpSamplingCapability {
pub tools: Option<Map<String, Value>>,
pub context: Option<Map<String, Value>>,
}Expand description
Re-exports of the rmcp wire-protocol types this crate now surfaces directly instead of wrapping. Pull these in to pattern-match on tool annotations, content blocks, structured tool output, embedded resources, sampling / elicitation requests, progress and log notifications, etc. Sampling capability with optional sub-capabilities (SEP-1577).
Fields§
§tools: Option<Map<String, Value>>Support for tools and toolChoice parameters
context: Option<Map<String, Value>>Support for includeContext (soft-deprecated)
Trait Implementations§
Source§impl Clone for SamplingCapability
impl Clone for SamplingCapability
Source§fn clone(&self) -> SamplingCapability
fn clone(&self) -> SamplingCapability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SamplingCapability
impl Debug for SamplingCapability
Source§impl Default for SamplingCapability
impl Default for SamplingCapability
Source§fn default() -> SamplingCapability
fn default() -> SamplingCapability
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SamplingCapability
impl<'de> Deserialize<'de> for SamplingCapability
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SamplingCapability, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SamplingCapability, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SamplingCapability
impl PartialEq for SamplingCapability
Source§fn eq(&self, other: &SamplingCapability) -> bool
fn eq(&self, other: &SamplingCapability) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SamplingCapability
impl Serialize for SamplingCapability
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SamplingCapability
Auto Trait Implementations§
impl Freeze for SamplingCapability
impl RefUnwindSafe for SamplingCapability
impl Send for SamplingCapability
impl Sync for SamplingCapability
impl Unpin for SamplingCapability
impl UnsafeUnpin for SamplingCapability
impl UnwindSafe for SamplingCapability
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