Skip to main content

ToolsConfig

Struct ToolsConfig 

Source
pub struct ToolsConfig {
Show 22 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,
}
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: bool

Enable all tools. Default: true.

§summarize_output: bool

Summarize long tool output before injection into context. Default: true.

§shell: ShellConfig

Shell tool configuration.

§scrape: ScrapeConfig

Web scrape tool configuration.

§audit: AuditConfig

Audit log configuration.

§permissions: Option<PermissionsConfig>

Declarative permissions. Overrides legacy shell.blocked_commands when set.

§filters: FilterConfig

Output filter configuration.

§overflow: OverflowConfig

Large response offload configuration.

§anomaly: AnomalyConfig

Sliding-window anomaly detector.

§result_cache: ResultCacheConfig

Tool result cache.

§tafc: TafcConfig

Think-Augmented Function Calling.

§dependencies: DependencyConfig

Tool dependency graph.

§retry: RetryConfig

Error retry configuration.

§policy: PolicyConfig

Declarative policy compiler for tool call authorization.

§adversarial_policy: AdversarialPolicyConfig

LLM-based adversarial policy agent.

§utility: UtilityScoringConfig

Utility-guided tool dispatch gate.

§file: FileConfig

Per-path read allow/deny sandbox for the file tool.

§authorization: AuthorizationConfig

OAP declarative pre-action authorization.

§max_tool_calls_per_session: Option<u32>

Maximum tool calls allowed per agent session. None = unlimited.

§speculative: SpeculativeConfig

Speculative tool execution configuration.

§sandbox: SandboxConfig

OS-level subprocess sandbox configuration.

§egress: EgressConfig

Egress network event logging configuration.

Trait Implementations§

Source§

impl Debug for ToolsConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for ToolsConfig

Source§

fn default() -> ToolsConfig

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ToolsConfig

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<ToolsConfig, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for ToolsConfig

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,