Llm

Trait Llm 

Source
pub trait Llm: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn generate_content<'life0, 'async_trait>(
        &'life0 self,
        req: LlmRequest,
        stream: bool,
    ) -> Pin<Box<dyn Future<Output = Result<LlmResponseStream>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn name(&self) -> &str

Source

fn generate_content<'life0, 'async_trait>( &'life0 self, req: LlmRequest, stream: bool, ) -> Pin<Box<dyn Future<Output = Result<LlmResponseStream>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§