pub struct EnvironmentMiddleware;Expand description
Middleware that exposes environment variable operations to the agent.
Provides read access to environment variables and optionally write access for setting per-agent environment state.
Trait Implementations§
Source§impl Debug for EnvironmentMiddleware
impl Debug for EnvironmentMiddleware
Source§impl Default for EnvironmentMiddleware
impl Default for EnvironmentMiddleware
Source§fn default() -> EnvironmentMiddleware
fn default() -> EnvironmentMiddleware
Returns the “default value” for a type. Read more
Source§impl Middleware for EnvironmentMiddleware
impl Middleware for EnvironmentMiddleware
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 EnvironmentMiddleware
impl RefUnwindSafe for EnvironmentMiddleware
impl Send for EnvironmentMiddleware
impl Sync for EnvironmentMiddleware
impl Unpin for EnvironmentMiddleware
impl UnsafeUnpin for EnvironmentMiddleware
impl UnwindSafe for EnvironmentMiddleware
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