pub struct ClientSampling {
pub context: Option<Map<String, Value>>,
pub tools: Option<Map<String, Value>>,
}Expand description
Present if the client supports sampling from an LLM.
JSON schema
{
"description": "Present if the client supports sampling from an LLM.",
"type": "object",
"properties": {
"context": {
"description": "Whether the client supports context inclusion via includeContext parameter.\nIf not declared, servers SHOULD only use includeContext: \"none\" (or omit it).",
"type": "object",
"additionalProperties": true
},
"tools": {
"description": "Whether the client supports tool use via tools and toolChoice parameters.",
"type": "object",
"additionalProperties": true
}
}
}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 ClientSampling
impl Clone for ClientSampling
Source§fn clone(&self) -> ClientSampling
fn clone(&self) -> ClientSampling
Returns a duplicate 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 ClientSampling
impl Debug for ClientSampling
Source§impl Default for ClientSampling
impl Default for ClientSampling
Source§fn default() -> ClientSampling
fn default() -> ClientSampling
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientSampling
impl<'de> Deserialize<'de> for ClientSampling
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
Auto Trait Implementations§
impl Freeze for ClientSampling
impl RefUnwindSafe for ClientSampling
impl Send for ClientSampling
impl Sync for ClientSampling
impl Unpin for ClientSampling
impl UnwindSafe for ClientSampling
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