Trait sc_lib::providers::ProviderApi

source ·
pub trait ProviderApi {
    // Required method
    fn call<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        role_prompt: &'life1 str,
        user_prompt: &'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;
}

Required Methods§

source

fn call<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, role_prompt: &'life1 str, user_prompt: &'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,

Implementors§