pub struct FileReaderTool { /* private fields */ }
Expand description
文件读取工具
Implementations§
Trait Implementations§
Source§impl Clone for FileReaderTool
impl Clone for FileReaderTool
Source§fn clone(&self) -> FileReaderTool
fn clone(&self) -> FileReaderTool
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FileReaderTool
impl Debug for FileReaderTool
Source§impl Tool for FileReaderTool
impl Tool for FileReaderTool
Source§type Error = FileReaderToolError
type Error = FileReaderToolError
The error type of the tool.
Source§type Args = FileReaderArgs
type Args = FileReaderArgs
The arguments type of the tool.
Source§type Output = FileReaderResult
type Output = FileReaderResult
The output type of the tool.
Source§async fn definition(&self, _prompt: String) -> ToolDefinition
async fn definition(&self, _prompt: String) -> ToolDefinition
A method returning the tool definition. The user prompt can be used to
tailor the definition to the specific use case.
Auto Trait Implementations§
impl Freeze for FileReaderTool
impl RefUnwindSafe for FileReaderTool
impl Send for FileReaderTool
impl Sync for FileReaderTool
impl Unpin for FileReaderTool
impl UnwindSafe for FileReaderTool
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