pub struct ToolsConfig {Show 16 fields
pub bash_timeout_ms: u64,
pub web_fetch_max_bytes: usize,
pub require_approval: Vec<String>,
pub tool_output_max_chars: usize,
pub log_injection_warnings: bool,
pub use_content_delimiters: bool,
pub web_search: Option<WebSearchConfig>,
pub document_loaders: Option<HashMap<String, String>>,
pub document_max_bytes: usize,
pub stt: Option<SttConfig>,
pub image_max_dimension: u32,
pub media_cache_enabled: bool,
pub media_cache_max_mb: u64,
pub browser_enabled: bool,
pub browser_port: u16,
pub filters: HashMap<String, ToolFilter>,
}Fields§
§bash_timeout_ms: u64Bash command timeout in milliseconds
web_fetch_max_bytes: usizeMaximum bytes to return from web_fetch
require_approval: Vec<String>Tools that require user approval before execution e.g., [“bash”, “write_file”, “edit_file”]
tool_output_max_chars: usizeMaximum characters for tool output (0 = unlimited)
log_injection_warnings: boolLog warnings for suspicious injection patterns detected in tool outputs
use_content_delimiters: boolWrap tool outputs and memory content with XML-style delimiters
web_search: Option<WebSearchConfig>Web search configuration (disabled by default)
document_loaders: Option<HashMap<String, String>>Document loader overrides: extension → shell command (e.g., “pdf” → “pdftotext $1 -”)
document_max_bytes: usizeMaximum document file size in bytes (default: 10MB)
stt: Option<SttConfig>Audio transcription (STT) configuration
image_max_dimension: u32Maximum image dimension (width or height) before resizing for vision models. 0 = disabled (send original). Default: 1568px.
media_cache_enabled: boolEnable media result caching for document_load/transcribe_audio (default: true)
media_cache_max_mb: u64Maximum media cache size in MB (default: 100)
browser_enabled: boolEnable browser automation tool via Chrome DevTools Protocol (default: false)
browser_port: u16Chrome CDP debug port (default: 9222)
filters: HashMap<String, ToolFilter>Per-tool input filters (deny/allow patterns and substrings). Keys are tool names (e.g. “bash”, “web_fetch”).
Trait Implementations§
Source§impl Clone for ToolsConfig
impl Clone for ToolsConfig
Source§fn clone(&self) -> ToolsConfig
fn clone(&self) -> ToolsConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ToolsConfig
impl Debug for ToolsConfig
Source§impl Default for ToolsConfig
impl Default for ToolsConfig
Source§impl<'de> Deserialize<'de> for ToolsConfig
impl<'de> Deserialize<'de> for ToolsConfig
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>,
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> 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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().