pub struct ToolRegistryConfig {
pub use_optimized_registry: bool,
pub hot_cache_size: usize,
pub middleware_fail_open: bool,
/* private fields */
}Expand description
Tool registry optimization configuration
Fields§
§use_optimized_registry: boolEnable optimized registry
hot_cache_size: usizeHot cache size for frequently used tools
middleware_fail_open: boolWhen true, middleware before_execute failures are logged but do
not block the tool call (fail-open). When false (the default),
middleware errors deny execution (fail-closed).
Trait Implementations§
Source§impl Clone for ToolRegistryConfig
impl Clone for ToolRegistryConfig
Source§impl Debug for ToolRegistryConfig
impl Debug for ToolRegistryConfig
Source§impl Default for ToolRegistryConfig
impl Default for ToolRegistryConfig
Source§impl<'de> Deserialize<'de> for ToolRegistryConfigwhere
ToolRegistryConfig: Default,
impl<'de> Deserialize<'de> for ToolRegistryConfigwhere
ToolRegistryConfig: Default,
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 JsonSchema for ToolRegistryConfig
impl JsonSchema for ToolRegistryConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ToolRegistryConfig
impl RefUnwindSafe for ToolRegistryConfig
impl Send for ToolRegistryConfig
impl Sync for ToolRegistryConfig
impl Unpin for ToolRegistryConfig
impl UnsafeUnpin for ToolRegistryConfig
impl UnwindSafe for ToolRegistryConfig
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