pub struct SummarisationMiddleware { /* private fields */ }Expand description
Middleware that summarises conversation history when thresholds are exceeded.
Implementations§
Source§impl SummarisationMiddleware
impl SummarisationMiddleware
Sourcepub const fn new(thresholds: SummarisationThresholds) -> Self
pub const fn new(thresholds: SummarisationThresholds) -> Self
Create a new summarisation middleware with custom thresholds.
Trait Implementations§
Source§impl Debug for SummarisationMiddleware
impl Debug for SummarisationMiddleware
Source§impl Default for SummarisationMiddleware
impl Default for SummarisationMiddleware
Source§impl Middleware for SummarisationMiddleware
impl Middleware for SummarisationMiddleware
Source§fn process(
&self,
input: MiddlewareInput,
) -> BoxFuture<'_, Result<MiddlewareResult, AgentError>>
fn process( &self, input: MiddlewareInput, ) -> BoxFuture<'_, Result<MiddlewareResult, AgentError>>
Process the input and optionally call through to the next layer. Read more
Auto Trait Implementations§
impl Freeze for SummarisationMiddleware
impl RefUnwindSafe for SummarisationMiddleware
impl Send for SummarisationMiddleware
impl Sync for SummarisationMiddleware
impl Unpin for SummarisationMiddleware
impl UnsafeUnpin for SummarisationMiddleware
impl UnwindSafe for SummarisationMiddleware
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