Skip to main content

TextLmRunnerExt

Trait TextLmRunnerExt 

Source
pub trait TextLmRunnerExt<'s, 'req> {
    // Required method
    fn get_lm_response<Tmpl>(
        &'s self,
        request: GenericTextLmRequest<'req, Tmpl>,
    ) -> Result<String, GenericRunnerError<Tmpl::Error>>
       where Tmpl: ChatTemplate;
}

Required Methods§

Source

fn get_lm_response<Tmpl>( &'s self, request: GenericTextLmRequest<'req, Tmpl>, ) -> Result<String, GenericRunnerError<Tmpl::Error>>
where Tmpl: ChatTemplate,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'s, 'req, TextRunner> TextLmRunnerExt<'s, 'req> for TextRunner
where TextRunner: TextLmRunner<'s, 'req>,