pub trait Chain: Sync + Send {
    // Required methods
    fn call<'life0, 'async_trait>(
        &'life0 self,
        input_variables: PromptArgs
    ) -> Pin<Box<dyn Future<Output = Result<GenerateResult, Box<dyn Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn invoke<'life0, 'async_trait>(
        &'life0 self,
        input_variables: PromptArgs
    ) -> Pin<Box<dyn Future<Output = Result<String, Box<dyn Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided methods
    fn execute<'life0, 'async_trait>(
        &'life0 self,
        input_variables: PromptArgs
    ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Value>, Box<dyn Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn get_input_keys(&self) -> Vec<String> { ... }
    fn get_output_keys(&self) -> Vec<String> { ... }
}

Required Methods§

source

fn call<'life0, 'async_trait>( &'life0 self, input_variables: PromptArgs ) -> Pin<Box<dyn Future<Output = Result<GenerateResult, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn invoke<'life0, 'async_trait>( &'life0 self, input_variables: PromptArgs ) -> Pin<Box<dyn Future<Output = Result<String, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

source

fn execute<'life0, 'async_trait>( &'life0 self, input_variables: PromptArgs ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Value>, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn get_input_keys(&self) -> Vec<String>

source

fn get_output_keys(&self) -> Vec<String>

Implementors§