pub trait Summarizer {
// Required method
fn summarize(
&self,
full_output: &str,
metadata: Option<&Value>,
) -> Result<String>;
// Provided method
fn estimate_savings(
&self,
full_output: &str,
summary: &str,
) -> SavingsEstimate { ... }
}Expand description
Trait for tool result summarization strategies
Each tool type implements its own summarization logic to convert full output into concise LLM context
Required Methods§
Provided Methods§
Sourcefn estimate_savings(&self, full_output: &str, summary: &str) -> SavingsEstimate
fn estimate_savings(&self, full_output: &str, summary: &str) -> SavingsEstimate
Estimate token savings from summarization
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".