pub struct ParamOverrideConfig {
pub tool: String,
pub hide: Vec<String>,
pub defaults: Map<String, Value>,
pub rename: HashMap<String, String>,
}Expand description
Per-tool parameter override configuration.
Allows hiding parameters from tool schemas (injecting defaults instead), and renaming parameters to present a more domain-specific interface.
§Configuration
[[backends.param_overrides]]
tool = "list_directory"
hide = ["path"]
defaults = { path = "/home/docs" }
rename = { recursive = "deep_search" }Fields§
§tool: StringTool name (backend-local, without namespace prefix).
hide: Vec<String>Parameters to hide from the tool’s input schema.
Hidden parameters are removed from the schema and their values
are injected from defaults at call time.
defaults: Map<String, Value>Default values for hidden parameters. These are injected into tool call arguments when the parameter is hidden.
rename: HashMap<String, String>Parameter renames: maps original parameter names to new names. The schema exposes the new name; at call time the new name is mapped back to the original before forwarding to the backend.
Trait Implementations§
Source§impl Clone for ParamOverrideConfig
impl Clone for ParamOverrideConfig
Source§fn clone(&self) -> ParamOverrideConfig
fn clone(&self) -> ParamOverrideConfig
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 ParamOverrideConfig
impl Debug for ParamOverrideConfig
Source§impl<'de> Deserialize<'de> for ParamOverrideConfig
impl<'de> Deserialize<'de> for ParamOverrideConfig
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 ParamOverrideConfig
impl RefUnwindSafe for ParamOverrideConfig
impl Send for ParamOverrideConfig
impl Sync for ParamOverrideConfig
impl Unpin for ParamOverrideConfig
impl UnsafeUnpin for ParamOverrideConfig
impl UnwindSafe for ParamOverrideConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more