pub trait LLM: Sync + Send {
// Required methods
fn generate<'life0, 'life1, 'async_trait>(
&'life0 self,
messgaes: &'life1 [Message]
) -> Pin<Box<dyn Future<Output = Result<GenerateResult, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn invoke<'life0, 'life1, 'async_trait>(
&'life0 self,
prompt: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<String, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
// Provided methods
fn with_options(&mut self, _options: CallOptions) { ... }
fn messages_to_string(&self, messages: &[Message]) -> String { ... }
}