pub trait Summarizer: Send + Sync {
// Required method
fn summarize(
&self,
entries: &[SessionEntryType],
custom_instructions: Option<&str>,
replace_instructions: bool,
) -> impl Future<Output = Result<BranchSummaryResult, SummarizationError>> + Send + 'static;
}Expand description
Trait for LLM-based summarization Implement this to provide actual summarization, or use a mock for testing
Required Methods§
Sourcefn summarize(
&self,
entries: &[SessionEntryType],
custom_instructions: Option<&str>,
replace_instructions: bool,
) -> impl Future<Output = Result<BranchSummaryResult, SummarizationError>> + Send + 'static
fn summarize( &self, entries: &[SessionEntryType], custom_instructions: Option<&str>, replace_instructions: bool, ) -> impl Future<Output = Result<BranchSummaryResult, SummarizationError>> + Send + 'static
Generate a summary of the given entries
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.