Skip to main content

LocalSummarizer

Trait LocalSummarizer 

Source
pub trait LocalSummarizer {
    // Required method
    async fn summarize(
        &self,
        bodies: Vec<Vec<u8>>,
    ) -> Result<Vec<u8>, LaserError>;
}
Expand description

Folds a batch of session bodies into one durable summary body. The seam the consolidation summarize pass calls: a model client, a template, or a hosted summarize API lives in application code, the same boundary as Embedder and Reranker. The SDK ships no model client, ever.

Required Methods§

Source

async fn summarize(&self, bodies: Vec<Vec<u8>>) -> Result<Vec<u8>, LaserError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<TraitVariantBlanketType: Summarizer> LocalSummarizer for TraitVariantBlanketType