pub trait ProviderResponseExt {
type OutputMessage: Serialize;
type Usage: Serialize;
// Required methods
fn get_response_id(&self) -> Option<String>;
fn get_response_model_name(&self) -> Option<String>;
fn get_output_messages(&self) -> Vec<Self::OutputMessage>;
fn get_text_response(&self) -> Option<String>;
fn get_usage(&self) -> Option<Self::Usage>;
}Required Associated Types§
Required Methods§
fn get_response_id(&self) -> Option<String>
fn get_response_model_name(&self) -> Option<String>
fn get_output_messages(&self) -> Vec<Self::OutputMessage>
fn get_text_response(&self) -> Option<String>
fn get_usage(&self) -> Option<Self::Usage>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".