pub struct ClientCapabilitiesSampling {
pub context: Option<Map<String, Value>>,
pub tools: Option<Map<String, Value>>,
}Expand description
Present if the client supports sampling from an LLM.
Fields§
§context: Option<Map<String, Value>>Whether the client supports context inclusion via includeContext parameter.
If not declared, servers SHOULD only use includeContext: "none" (or omit it).
tools: Option<Map<String, Value>>Whether the client supports tool use via tools and toolChoice parameters.
Trait Implementations§
Source§impl Clone for ClientCapabilitiesSampling
impl Clone for ClientCapabilitiesSampling
Source§fn clone(&self) -> ClientCapabilitiesSampling
fn clone(&self) -> ClientCapabilitiesSampling
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 ClientCapabilitiesSampling
impl Debug for ClientCapabilitiesSampling
Source§impl Default for ClientCapabilitiesSampling
impl Default for ClientCapabilitiesSampling
Source§fn default() -> ClientCapabilitiesSampling
fn default() -> ClientCapabilitiesSampling
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientCapabilitiesSampling
impl<'de> Deserialize<'de> for ClientCapabilitiesSampling
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClientCapabilitiesSampling, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClientCapabilitiesSampling, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ClientCapabilitiesSampling
impl Serialize for ClientCapabilitiesSampling
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 ClientCapabilitiesSampling
Auto Trait Implementations§
impl Freeze for ClientCapabilitiesSampling
impl RefUnwindSafe for ClientCapabilitiesSampling
impl Send for ClientCapabilitiesSampling
impl Sync for ClientCapabilitiesSampling
impl Unpin for ClientCapabilitiesSampling
impl UnsafeUnpin for ClientCapabilitiesSampling
impl UnwindSafe for ClientCapabilitiesSampling
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