pub struct GrepTool {
pub cwd: PathBuf,
}Fields§
§cwd: PathBufTrait Implementations§
Source§impl AgentTool for GrepTool
impl AgentTool for GrepTool
fn name(&self) -> &str
fn description(&self) -> &str
Source§fn input_schema(&self) -> Value
fn input_schema(&self) -> Value
JSON Schema (object) describing the tool’s parameters.
Source§fn execute<'life0, 'async_trait>(
&'life0 self,
args: Value,
_cancel: CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<ToolResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
args: Value,
_cancel: CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<ToolResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the tool. Throw on failure — the loop converts the error into
an error tool result.
fn label(&self) -> &str
fn execution_mode(&self) -> ExecutionMode
fn prepare_arguments(&self, args: Value) -> Value
Source§fn schema(&self) -> ToolSchema
fn schema(&self) -> ToolSchema
The schema fragment sent to the model.
Auto Trait Implementations§
impl Forget for GrepTool
impl Freeze for GrepTool
impl Move for GrepTool
impl RefUnwindSafe for GrepTool
impl Send for GrepTool
impl Sync for GrepTool
impl Unpin for GrepTool
impl UnsafeUnpin for GrepTool
impl UnwindSafe for GrepTool
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