pub struct StubSummarizer;Expand description
Deterministic placeholder summarizer — formats a tiny excerpt of the transcript so the data path is exercisable without a provider. Real deployments swap in an LLM-backed summarizer (one-trait swap).
Trait Implementations§
Source§impl Clone for StubSummarizer
impl Clone for StubSummarizer
Source§fn clone(&self) -> StubSummarizer
fn clone(&self) -> StubSummarizer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StubSummarizer
Source§impl Default for StubSummarizer
impl Default for StubSummarizer
Source§fn default() -> StubSummarizer
fn default() -> StubSummarizer
Returns the “default value” for a type. Read more
Source§impl Summarizer for StubSummarizer
impl Summarizer for StubSummarizer
Source§fn summarize<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
prior_summary: &'life1 str,
transcript: &'life2 [LlmMessage],
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn summarize<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
prior_summary: &'life1 str,
transcript: &'life2 [LlmMessage],
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Summarize
transcript (the about-to-be-dropped chunk), in the
context of prior_summary (the persistent state from earlier
compactions, empty on first compaction). Returns the new summary
text that replaces prior_summary going forward.Auto Trait Implementations§
impl Freeze for StubSummarizer
impl RefUnwindSafe for StubSummarizer
impl Send for StubSummarizer
impl Sync for StubSummarizer
impl Unpin for StubSummarizer
impl UnsafeUnpin for StubSummarizer
impl UnwindSafe for StubSummarizer
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