Skip to main content

LlmProvider

Trait LlmProvider 

Source
pub trait LlmProvider: Send + Sync {
    // Required method
    fn generate_action<'life0, 'async_trait>(
        &'life0 self,
        input: ProviderRequest,
    ) -> Pin<Box<dyn Future<Output = Result<ProviderDecision, ProviderError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn generate_action<'life0, 'async_trait>( &'life0 self, input: ProviderRequest, ) -> Pin<Box<dyn Future<Output = Result<ProviderDecision, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§