pub struct FsToolSet { /* private fields */ }Expand description
Bundle of small fs tools: fs_read, fs_write, fs_list.
Implementations§
Trait Implementations§
Source§impl ToolSet for FsToolSet
impl ToolSet for FsToolSet
Source§fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
input: Value,
ctx: &'life2 ToolContext,
) -> Pin<Box<dyn Future<Output = ToolOutcome> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
input: Value,
ctx: &'life2 ToolContext,
) -> Pin<Box<dyn Future<Output = ToolOutcome> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute a tool by name.
name is guaranteed to be one returned from specs()
by the caller; implementations return ToolOutcome::ExecutionError if that
invariant is violated.Auto Trait Implementations§
impl Freeze for FsToolSet
impl RefUnwindSafe for FsToolSet
impl Send for FsToolSet
impl Sync for FsToolSet
impl Unpin for FsToolSet
impl UnsafeUnpin for FsToolSet
impl UnwindSafe for FsToolSet
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