pub struct ToolAssembly { /* private fields */ }Implementations§
Source§impl ToolAssembly
impl ToolAssembly
pub fn new(workspace: PathBuf) -> Self
pub fn builtin(self, config: BuiltInToolsConfig) -> Self
pub fn with_network_config(self, config: NetworkToolConfig) -> Self
pub fn with_exec_timeout(self, timeout: u64) -> Self
pub fn restrict_to_workspace(self, restrict: bool) -> Self
pub fn mcp_servers(self, servers: HashMap<String, MCPServerConfig>) -> Self
pub fn with_cron_service(self, service: Arc<CronService>) -> Self
pub fn with_subagent_spawner(self, spawner: Arc<dyn SubagentSpawner>) -> Self
pub fn with_file_manager(self, file_manager: Arc<FileManager>) -> Self
pub fn with_tool(self, tool: Arc<dyn Tool>) -> Self
pub fn with_tools(self, tools: Vec<Arc<dyn Tool>>) -> Self
pub fn build(self) -> ToolRegistry
pub fn build_subagent_registry(self) -> ToolRegistry
Auto Trait Implementations§
impl Freeze for ToolAssembly
impl !RefUnwindSafe for ToolAssembly
impl Send for ToolAssembly
impl Sync for ToolAssembly
impl Unpin for ToolAssembly
impl UnsafeUnpin for ToolAssembly
impl !UnwindSafe for ToolAssembly
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
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>
Converts
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>
Converts
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 more