pub trait SummarizerClient: Send + Sync {
// Required method
fn create_message<'life0, 'life1, 'async_trait>(
&'life0 self,
messages: Vec<Message>,
system_prompt: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<SummarizerResponse, ContextError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Trait for clients that can generate AI summaries.
This trait abstracts the LLM client interface, allowing for different implementations (e.g., Anthropic, OpenAI) or mock clients for testing.