pub struct LocalTools { /* private fields */ }Expand description
In-process tools.
Implementations§
Trait Implementations§
Source§impl ToolSource for LocalTools
impl ToolSource for LocalTools
fn id(&self) -> &str
fn kind(&self) -> SourceKind
fn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ToolSpec>, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn target(&self, tool: &str, args: &Value) -> CallTarget
fn call<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool: &'life1 str,
ctx: &'life2 ToolContext,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<ToolOutput, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for LocalTools
impl !UnwindSafe for LocalTools
impl Forget for LocalTools
impl Freeze for LocalTools
impl Move for LocalTools
impl Send for LocalTools
impl Sync for LocalTools
impl Unpin for LocalTools
impl UnsafeUnpin for LocalTools
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