Trait OutputParser

Source
pub trait OutputParser: Send + Sync {
    // Required method
    fn parse<'life0, 'life1, 'async_trait>(
        &'life0 self,
        output: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<String, OutputParserError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn parse<'life0, 'life1, 'async_trait>( &'life0 self, output: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<String, OutputParserError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Trait Implementations§

Source§

impl<P> From<P> for Box<dyn OutputParser>
where P: OutputParser + 'static,

Source§

fn from(parser: P) -> Self

Converts to this type from the input type.

Implementors§