pub struct CodeToolTools { /* private fields */ }Expand description
Tool executor for multiple repository code browsers.
Implementations§
Trait Implementations§
Source§impl ToolExecutor for CodeToolTools
impl ToolExecutor for CodeToolTools
Source§fn has_tool(&self, name: &str) -> bool
fn has_tool(&self, name: &str) -> bool
Check if this executor handles a tool with the given name.
Source§fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
input: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<ToolResult, String>> + 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: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<ToolResult, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute a tool by name with the given input arguments.
Returns the result to be sent back to LLM, potentially with attachments.
Auto Trait Implementations§
impl Freeze for CodeToolTools
impl !RefUnwindSafe for CodeToolTools
impl Send for CodeToolTools
impl Sync for CodeToolTools
impl Unpin for CodeToolTools
impl !UnwindSafe for CodeToolTools
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more