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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".