pub struct BuiltinToolExecutorBuilder { /* private fields */ }Expand description
Builder for constructing a BuiltinToolExecutor with custom tool configurations
Implementations§
Source§impl BuiltinToolExecutorBuilder
impl BuiltinToolExecutorBuilder
Sourcepub fn with_default_tools(self) -> Self
pub fn with_default_tools(self) -> Self
Registers all default built-in tools
Sourcepub fn with_filesystem_tool(self, name: &str) -> Result<Self, ToolError>
pub fn with_filesystem_tool(self, name: &str) -> Result<Self, ToolError>
Registers a specific filesystem tool by name
Sourcepub fn with_command_tool(self, name: &str) -> Result<Self, ToolError>
pub fn with_command_tool(self, name: &str) -> Result<Self, ToolError>
Registers a specific command tool by name
Sourcepub fn with_tool<T: Tool + 'static>(self, tool: T) -> Result<Self, ToolError>
pub fn with_tool<T: Tool + 'static>(self, tool: T) -> Result<Self, ToolError>
Registers a custom tool
Sourcepub fn with_permission_checker(
self,
checker: Arc<dyn PermissionChecker>,
) -> Self
pub fn with_permission_checker( self, checker: Arc<dyn PermissionChecker>, ) -> Self
Sets a permission checker for this executor
Sourcepub fn build(self) -> BuiltinToolExecutor
pub fn build(self) -> BuiltinToolExecutor
Builds the executor
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BuiltinToolExecutorBuilder
impl !RefUnwindSafe for BuiltinToolExecutorBuilder
impl Send for BuiltinToolExecutorBuilder
impl Sync for BuiltinToolExecutorBuilder
impl Unpin for BuiltinToolExecutorBuilder
impl UnsafeUnpin for BuiltinToolExecutorBuilder
impl !UnwindSafe for BuiltinToolExecutorBuilder
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