pub struct ToolsConfig {
pub web: WebToolsConfig,
pub exec_tool: ExecToolConfig,
pub restrict_to_workspace: bool,
pub mcp_servers: HashMap<String, MCPServerConfig>,
pub command_policy: CommandPolicyConfig,
pub url_policy: UrlPolicyConfig,
}Expand description
Tools configuration.
Fields§
§web: WebToolsConfigWeb tools (search, etc.).
exec_tool: ExecToolConfigShell exec tool settings.
restrict_to_workspace: boolWhether to restrict all tool access to the workspace directory.
mcp_servers: HashMap<String, MCPServerConfig>MCP server connections.
command_policy: CommandPolicyConfigCommand execution policy (allowlist/denylist).
url_policy: UrlPolicyConfigURL safety policy (SSRF protection).
Trait Implementations§
Source§impl Clone for ToolsConfig
impl Clone for ToolsConfig
Source§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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more