pub struct SummarizationMiddleware {
pub messages_to_keep: usize,
pub summary_note: String,
}
Fields§
§messages_to_keep: usize
§summary_note: String
Implementations§
Trait Implementations§
Source§impl AgentMiddleware for SummarizationMiddleware
impl AgentMiddleware for SummarizationMiddleware
Source§fn modify_model_request<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 mut MiddlewareContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn modify_model_request<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 mut MiddlewareContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Apply middleware-specific mutations to the pending model request.
Auto Trait Implementations§
impl Freeze for SummarizationMiddleware
impl RefUnwindSafe for SummarizationMiddleware
impl Send for SummarizationMiddleware
impl Sync for SummarizationMiddleware
impl Unpin for SummarizationMiddleware
impl UnwindSafe for SummarizationMiddleware
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