pub struct ToolOverride {
pub enabled: Option<bool>,
pub description: Option<String>,
pub schema_tier: Option<SchemaTier>,
pub timeout_secs: Option<u64>,
}Expand description
Per-tool customization: enable/disable a tool and/or override the description the model sees for it.
Fields§
§enabled: Option<bool>If Some(false), the tool is hidden from the model entirely.
description: Option<String>If Some, replaces the tool’s built-in description in the schema.
schema_tier: Option<SchemaTier>If Some, overrides Config::tool_schema_tier (TR-8/T5) for this
specific tool — e.g. keep one fat MCP tool at Full while the global
knob shrinks everything else to Minimal.
timeout_secs: Option<u64>P4e (design §3.1/§S14 core.tools.bash.timeout_secs): the DEFAULT
execution timeout (seconds) for the bash tool when a model-issued
call doesn’t supply its own timeout_ms argument — see
tools::builtins::BashTool::execute’s precedence (an explicit
per-call timeout_ms always wins; this only replaces the BUILT-IN
DEFAULT_BASH_TIMEOUT_MS fallback). Only meaningful on the bash
entry; other tools ignore it. None (the default) is byte-identical
to today’s behavior — BashTool’s internal 120s default stands.
Trait Implementations§
Source§impl Clone for ToolOverride
impl Clone for ToolOverride
Source§fn clone(&self) -> ToolOverride
fn clone(&self) -> ToolOverride
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more