pub struct ToolChoiceMcp {
pub server_label: String,
pub name: Option<String>,
}
Expand description
Use this option to force the model to call a specific tool on a remote MCP server.
Fields§
§server_label: String
The label of the MCP server to use.
name: Option<String>
The name of the tool to call on the server.
Implementations§
Trait Implementations§
Source§impl Clone for ToolChoiceMcp
impl Clone for ToolChoiceMcp
Source§fn clone(&self) -> ToolChoiceMcp
fn clone(&self) -> ToolChoiceMcp
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ToolChoiceMcp
impl Debug for ToolChoiceMcp
Source§impl<'de> Deserialize<'de> for ToolChoiceMcp
impl<'de> Deserialize<'de> for ToolChoiceMcp
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 ToolChoiceMcp
impl PartialEq for ToolChoiceMcp
Source§impl Serialize for ToolChoiceMcp
impl Serialize for ToolChoiceMcp
impl StructuralPartialEq for ToolChoiceMcp
Auto Trait Implementations§
impl Freeze for ToolChoiceMcp
impl RefUnwindSafe for ToolChoiceMcp
impl Send for ToolChoiceMcp
impl Sync for ToolChoiceMcp
impl Unpin for ToolChoiceMcp
impl UnwindSafe for ToolChoiceMcp
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