pub struct FileMemoryTool { /* private fields */ }Expand description
An Arc<dyn BaseTool> adapter over a FileMemoryStore, exposing the store’s ops as a
single string-in/string-out tool for the agent loop.
Implementations§
Trait Implementations§
Source§impl BaseTool for FileMemoryTool
impl BaseTool for FileMemoryTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
Returns the tool description. Read more
Source§fn run<'life0, 'async_trait>(
&'life0 self,
input: String,
) -> Pin<Box<dyn Future<Output = Result<String, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn run<'life0, 'async_trait>(
&'life0 self,
input: String,
) -> Pin<Box<dyn Future<Output = Result<String, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the tool (string version). Read more
Source§fn return_direct(&self) -> bool
fn return_direct(&self) -> bool
Whether to return result directly to user. Read more
Source§fn risk(&self) -> ToolRiskProfile
fn risk(&self) -> ToolRiskProfile
Declared Rule-of-Two risk profile (A2, v0.22.1). Read more
Auto Trait Implementations§
impl Freeze for FileMemoryTool
impl RefUnwindSafe for FileMemoryTool
impl Send for FileMemoryTool
impl Sync for FileMemoryTool
impl Unpin for FileMemoryTool
impl UnsafeUnpin for FileMemoryTool
impl UnwindSafe for FileMemoryTool
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