Trait CompletionModel

Source
pub trait CompletionModel: Send + Sync {
    // Required method
    fn completion<'life0, 'async_trait>(
        &'life0 self,
        completion: CompletionRequest,
    ) -> Pin<Box<dyn Future<Output = Result<OneOrMany<AssistantContent>, CompletionError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn completion<'life0, 'async_trait>( &'life0 self, completion: CompletionRequest, ) -> Pin<Box<dyn Future<Output = Result<OneOrMany<AssistantContent>, CompletionError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§