pub trait LlmClient: Send + Sync {
// Required methods
fn generate_commit_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
diff: &'life1 str,
template: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<(String, String)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn provider_name(&self) -> &str;
}Expand description
Trait for LLM clients that can generate commit messages
Required Methods§
Sourcefn generate_commit_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
diff: &'life1 str,
template: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<(String, String)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn generate_commit_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
diff: &'life1 str,
template: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<(String, String)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Sourcefn provider_name(&self) -> &str
fn provider_name(&self) -> &str
Get the provider name for display