pub struct ReadFileTool;Trait Implementations§
Source§impl Tool for ReadFileTool
impl Tool for ReadFileTool
fn name(&self) -> &str
fn description(&self) -> &str
fn input_schema(&self) -> Value
fn is_read_only(&self) -> bool
fn call<'a>( &'a self, input: Value, ctx: &'a ToolContext, ) -> Pin<Box<dyn Future<Output = Result<ToolResult>> + Send + 'a>>
fn should_defer(&self) -> bool
fn search_hints(&self) -> Vec<String>
fn definition(&self) -> ToolDefinition
Auto Trait Implementations§
impl Freeze for ReadFileTool
impl RefUnwindSafe for ReadFileTool
impl Send for ReadFileTool
impl Sync for ReadFileTool
impl Unpin for ReadFileTool
impl UnsafeUnpin for ReadFileTool
impl UnwindSafe for ReadFileTool
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