Trait langchain_rust::chain::chain_trait::Chain
source · 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;
}