pub enum ToolInjection {
Add(Box<dyn Tool>),
Remove(Vec<String>),
}Expand description
A runtime tool-injection command sent through the channel created by
[DeepseekAgent::with_tool_inject_channel].
Variants§
Add(Box<dyn Tool>)
Add a new tool to the running agent.
Remove(Vec<String>)
Remove all tools whose raw_tools() names are in the given set.
Auto Trait Implementations§
impl Freeze for ToolInjection
impl !RefUnwindSafe for ToolInjection
impl Send for ToolInjection
impl Sync for ToolInjection
impl Unpin for ToolInjection
impl UnsafeUnpin for ToolInjection
impl !UnwindSafe for ToolInjection
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