pub struct ToolConfig {
pub id: String,
pub enabled: SwitchPosition,
pub confirm_preview: bool,
pub executable_path: Option<Path<'static>>,
pub manifest_path: Path<'static>,
pub manifest: Option<ToolManifest>,
}Expand description
Configuration for a single tool declared in tools.conf.
Tools are external executables that speak the sid tool protocol. The manifest JSON supplies the Anthropic API with a description and JSON-Schema input definition, while the executable path locates the binary that actually runs each invocation.
Fields§
§id: StringTool identifier (the rc.conf service name after alias resolution).
enabled: SwitchPositionWhether the tool is enabled, disabled, or requires manual confirmation.
confirm_preview: boolWhen true, the harness shows a diff preview before executing write operations.
executable_path: Option<Path<'static>>Filesystem path to the tool executable, or None for built-in tools.
manifest_path: Path<'static>Filesystem path to the tool’s manifest JSON file.
manifest: Option<ToolManifest>Parsed manifest, or None when the manifest is optional and absent.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolConfig
impl RefUnwindSafe for ToolConfig
impl Send for ToolConfig
impl Sync for ToolConfig
impl Unpin for ToolConfig
impl UnsafeUnpin for ToolConfig
impl UnwindSafe for ToolConfig
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