pub trait SessionTitler {
// Required methods
fn title(&self, transcript_preview: &str) -> Result<String, Error>;
fn model_id(&self) -> &str;
}Expand description
Injectable session-titling side-call (mirrors
crate::reduce::summarize::SpanSummarizer exactly). Err — for any
reason, including a caller-modeled timeout or budget exhaustion — means
the caller must fall back to no title (or the session’s existing one);
this call must never block or fail the surrounding session-save path.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".