Skip to main content

ProviderRequestExt

Trait ProviderRequestExt 

Source
pub trait ProviderRequestExt {
    type InputMessage: Serialize;

    // Required methods
    fn get_input_messages(&self) -> Vec<Self::InputMessage>;
    fn get_system_prompt(&self) -> Option<String>;
    fn get_model_name(&self) -> String;
    fn get_prompt(&self) -> Option<String>;
}

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§