pub struct ReadFileTool;Expand description
Model-visible adapter that requests a governed workspace file read.
Trait Implementations§
Source§impl Clone for ReadFileTool
impl Clone for ReadFileTool
impl Copy for ReadFileTool
Source§impl Debug for ReadFileTool
impl Debug for ReadFileTool
Source§impl Default for ReadFileTool
impl Default for ReadFileTool
Source§impl Tool for ReadFileTool
impl Tool for ReadFileTool
Source§fn schema(&self) -> ToolSchema
fn schema(&self) -> ToolSchema
Model perspective: this tool’s definition.
Source§fn call<'life0, 'life1, 'async_trait>(
&'life0 self,
arguments: Value,
context: ToolContext<'life1>,
) -> Pin<Box<dyn Future<Output = Result<ToolResult, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn call<'life0, 'life1, 'async_trait>(
&'life0 self,
arguments: Value,
context: ToolContext<'life1>,
) -> Pin<Box<dyn Future<Output = Result<ToolResult, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execution perspective: run this tool. Read more
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