pub struct FilesystemMiddleware;Expand description
Middleware that registers filesystem tools into the agent context.
Tools exposed: ls, read_file, write_file, edit_file, rm, pwd, cd.
Trait Implementations§
Source§impl Debug for FilesystemMiddleware
impl Debug for FilesystemMiddleware
Source§impl Default for FilesystemMiddleware
impl Default for FilesystemMiddleware
Source§fn default() -> FilesystemMiddleware
fn default() -> FilesystemMiddleware
Returns the “default value” for a type. Read more
Source§impl Middleware for FilesystemMiddleware
impl Middleware for FilesystemMiddleware
Source§fn tools(&self) -> Vec<Box<dyn Tool>>
fn tools(&self) -> Vec<Box<dyn Tool>>
Tools injected into the agent context by this middleware.
Source§fn system_prompt_additions(&self) -> Vec<String>
fn system_prompt_additions(&self) -> Vec<String>
System prompt additions contributed by this middleware. Read more
Source§fn process(
&self,
input: MiddlewareInput,
) -> Pin<Box<dyn Future<Output = Result<MiddlewareResult, AgentError>> + Send + '_>>
fn process( &self, input: MiddlewareInput, ) -> Pin<Box<dyn Future<Output = Result<MiddlewareResult, AgentError>> + Send + '_>>
Process the input and optionally call through to the next layer. Read more
Auto Trait Implementations§
impl Freeze for FilesystemMiddleware
impl RefUnwindSafe for FilesystemMiddleware
impl Send for FilesystemMiddleware
impl Sync for FilesystemMiddleware
impl Unpin for FilesystemMiddleware
impl UnsafeUnpin for FilesystemMiddleware
impl UnwindSafe for FilesystemMiddleware
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