pub enum ToolAdvertising {
Full,
Deferred {
core: Vec<String>,
},
}Expand description
How tools are advertised to the model (B6, D16).
Full sends every enabled tool’s schema on every request (today’s
behavior). Deferred advertises only a core allowlist plus a synthetic
tool_search meta-tool; everything else — the MCP surface above all,
since McpTool::from_client eagerly wraps every remote tool with its full
input_schema — is discoverable via tool_search and only advertised
(on the next request) once activated.
Variants§
Full
All enabled tools every request (today’s behavior).
Deferred
Only core tools + the tool_search meta-tool; everything else is
discoverable via tool_search and advertised only after activation.
Trait Implementations§
Source§impl Clone for ToolAdvertising
impl Clone for ToolAdvertising
Source§fn clone(&self) -> ToolAdvertising
fn clone(&self) -> ToolAdvertising
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 ToolAdvertising
impl Debug for ToolAdvertising
Source§impl Default for ToolAdvertising
impl Default for ToolAdvertising
Source§fn default() -> ToolAdvertising
fn default() -> ToolAdvertising
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ToolAdvertising
impl RefUnwindSafe for ToolAdvertising
impl Send for ToolAdvertising
impl Sync for ToolAdvertising
impl Unpin for ToolAdvertising
impl UnsafeUnpin for ToolAdvertising
impl UnwindSafe for ToolAdvertising
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