pub struct ArchiveMiddleware;Expand description
Middleware that exposes archive tools to the agent.
Trait Implementations§
Source§impl Debug for ArchiveMiddleware
impl Debug for ArchiveMiddleware
Source§impl Default for ArchiveMiddleware
impl Default for ArchiveMiddleware
Source§fn default() -> ArchiveMiddleware
fn default() -> ArchiveMiddleware
Returns the “default value” for a type. Read more
Source§impl Middleware for ArchiveMiddleware
impl Middleware for ArchiveMiddleware
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 ArchiveMiddleware
impl RefUnwindSafe for ArchiveMiddleware
impl Send for ArchiveMiddleware
impl Sync for ArchiveMiddleware
impl Unpin for ArchiveMiddleware
impl UnsafeUnpin for ArchiveMiddleware
impl UnwindSafe for ArchiveMiddleware
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