pub struct FileReadTool;Implementations§
Source§impl FileReadTool
impl FileReadTool
pub fn new() -> Self
pub fn name(&self) -> &str
pub fn description(&self) -> &str
pub fn input_schema(&self) -> ToolInputSchema
pub async fn execute( &self, input: Value, context: &ToolContext, ) -> Result<ToolResult, AgentError>
Auto Trait Implementations§
impl Freeze for FileReadTool
impl RefUnwindSafe for FileReadTool
impl Send for FileReadTool
impl Sync for FileReadTool
impl Unpin for FileReadTool
impl UnsafeUnpin for FileReadTool
impl UnwindSafe for FileReadTool
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