pub struct WriteTool;Expand description
Tool for writing content to files.
Implementations§
Trait Implementations§
Source§impl Tool for WriteTool
impl Tool for WriteTool
Source§const NAME: &'static str = tool_names::WRITE
const NAME: &'static str = tool_names::WRITE
The name of the tool. This name should be unique.
Source§type Args = WriteToolArgs
type Args = WriteToolArgs
The arguments 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 WriteTool
impl RefUnwindSafe for WriteTool
impl Send for WriteTool
impl Sync for WriteTool
impl Unpin for WriteTool
impl UnwindSafe for WriteTool
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