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