pub struct ToolsConfig {Show 23 fields
pub enabled: bool,
pub summarize_output: bool,
pub shell: ShellConfig,
pub scrape: ScrapeConfig,
pub audit: AuditConfig,
pub permissions: Option<PermissionsConfig>,
pub filters: FilterConfig,
pub overflow: OverflowConfig,
pub anomaly: AnomalyConfig,
pub result_cache: ResultCacheConfig,
pub tafc: TafcConfig,
pub dependencies: DependencyConfig,
pub retry: RetryConfig,
pub policy: PolicyConfig,
pub adversarial_policy: AdversarialPolicyConfig,
pub utility: UtilityScoringConfig,
pub file: FileConfig,
pub authorization: AuthorizationConfig,
pub max_tool_calls_per_session: Option<u32>,
pub speculative: SpeculativeConfig,
pub sandbox: SandboxConfig,
pub egress: EgressConfig,
pub compression: ToolCompressionConfig,
}Expand description
Top-level configuration for tool execution.
Deserialized from [tools] in TOML. The permission_policy() method (which constructs
a runtime PermissionPolicy) lives in zeph-tools as a free function to avoid
importing runtime types into this leaf crate.
Fields§
§enabled: boolEnable all tools. Default: true.
summarize_output: boolSummarize long tool output before injection into context. Default: true.
shell: ShellConfigShell tool configuration.
scrape: ScrapeConfigWeb scrape tool configuration.
audit: AuditConfigAudit log configuration.
permissions: Option<PermissionsConfig>Declarative permissions. Overrides legacy shell.blocked_commands when set.
filters: FilterConfigOutput filter configuration.
overflow: OverflowConfigLarge response offload configuration.
anomaly: AnomalyConfigSliding-window anomaly detector.
result_cache: ResultCacheConfigTool result cache.
tafc: TafcConfigThink-Augmented Function Calling.
dependencies: DependencyConfigTool dependency graph.
retry: RetryConfigError retry configuration.
policy: PolicyConfigDeclarative policy compiler for tool call authorization.
adversarial_policy: AdversarialPolicyConfigLLM-based adversarial policy agent.
utility: UtilityScoringConfigUtility-guided tool dispatch gate.
file: FileConfigPer-path read allow/deny sandbox for the file tool.
OAP declarative pre-action authorization.
max_tool_calls_per_session: Option<u32>Maximum tool calls allowed per agent session. None = unlimited.
speculative: SpeculativeConfigSpeculative tool execution configuration.
sandbox: SandboxConfigOS-level subprocess sandbox configuration.
egress: EgressConfigEgress network event logging configuration.
compression: ToolCompressionConfigTACO self-evolving tool output compression configuration.
Trait Implementations§
Source§impl Debug for ToolsConfig
impl Debug for ToolsConfig
Source§impl Default for ToolsConfig
impl Default for ToolsConfig
Source§fn default() -> ToolsConfig
fn default() -> ToolsConfig
Source§impl<'de> Deserialize<'de> for ToolsConfig
impl<'de> Deserialize<'de> for ToolsConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolsConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolsConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for ToolsConfig
impl Serialize for ToolsConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for ToolsConfig
impl RefUnwindSafe for ToolsConfig
impl Send for ToolsConfig
impl Sync for ToolsConfig
impl Unpin for ToolsConfig
impl UnsafeUnpin for ToolsConfig
impl UnwindSafe for ToolsConfig
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
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>
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>
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