pub struct HeuristicSummarizer;Expand description
Heuristic summarizer that extracts key points without using an LLM.
This is a lightweight summarization approach that:
- Lists user questions/requests
- Lists tools that were used
- Captures final conclusions
This provides continuity without expensive LLM calls.
Implementations§
Source§impl HeuristicSummarizer
impl HeuristicSummarizer
Sourcepub fn new() -> HeuristicSummarizer
pub fn new() -> HeuristicSummarizer
Create a new heuristic summarizer.
Trait Implementations§
Source§impl Debug for HeuristicSummarizer
impl Debug for HeuristicSummarizer
Source§impl Default for HeuristicSummarizer
impl Default for HeuristicSummarizer
Source§fn default() -> HeuristicSummarizer
fn default() -> HeuristicSummarizer
Returns the “default value” for a type. Read more
Source§impl Summarizer for HeuristicSummarizer
impl Summarizer for HeuristicSummarizer
Source§fn summarize<'life0, 'life1, 'async_trait>(
&'life0 self,
messages: &'life1 [Message],
) -> Pin<Box<dyn Future<Output = Result<String, BudgetError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HeuristicSummarizer: 'async_trait,
fn summarize<'life0, 'life1, 'async_trait>(
&'life0 self,
messages: &'life1 [Message],
) -> Pin<Box<dyn Future<Output = Result<String, BudgetError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
HeuristicSummarizer: 'async_trait,
Generate a summary of the given messages. Read more
Auto Trait Implementations§
impl Freeze for HeuristicSummarizer
impl RefUnwindSafe for HeuristicSummarizer
impl Send for HeuristicSummarizer
impl Sync for HeuristicSummarizer
impl Unpin for HeuristicSummarizer
impl UnsafeUnpin for HeuristicSummarizer
impl UnwindSafe for HeuristicSummarizer
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