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§impl Debug for ToolAdvertising
impl Debug for ToolAdvertising
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