pub enum ToolBox {
Bash(BashTool),
Read(ReadTool),
Write(WriteTool),
Skill(SkillTool),
}Variants§
Implementations§
Source§impl ToolBox
impl ToolBox
pub fn definition(&self) -> ToolDefinition
pub async fn execute(&self, params: Value) -> Result<ToolResult, ToolError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolBox
impl RefUnwindSafe for ToolBox
impl Send for ToolBox
impl Sync for ToolBox
impl Unpin for ToolBox
impl UnsafeUnpin for ToolBox
impl UnwindSafe for ToolBox
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