pub struct GoogleRealtimeConfig {
pub top_p: Option<f64>,
pub top_k: Option<f64>,
pub presence_penalty: Option<f64>,
pub frequency_penalty: Option<f64>,
pub speech_config: Option<GeminiMultimodalLiveSpeechConfig>,
}Fields§
§top_p: Option<f64>This is the nucleus sampling parameter that controls the cumulative probability of tokens considered during text generation. Only applicable with the Gemini Flash 2.0 Multimodal Live API.
top_k: Option<f64>This is the top-k sampling parameter that limits the number of highest probability tokens considered during text generation. Only applicable with the Gemini Flash 2.0 Multimodal Live API.
presence_penalty: Option<f64>This is the presence penalty parameter that influences the model’s likelihood to repeat information by penalizing tokens based on their presence in the text. Only applicable with the Gemini Flash 2.0 Multimodal Live API.
frequency_penalty: Option<f64>This is the frequency penalty parameter that influences the model’s likelihood to repeat tokens by penalizing them based on their frequency in the text. Only applicable with the Gemini Flash 2.0 Multimodal Live API.
speech_config: Option<GeminiMultimodalLiveSpeechConfig>This is the speech configuration object that defines the voice settings to be used for the model’s speech output. Only applicable with the Gemini Flash 2.0 Multimodal Live API.
Implementations§
Source§impl GoogleRealtimeConfig
impl GoogleRealtimeConfig
pub fn new() -> GoogleRealtimeConfig
Trait Implementations§
Source§impl Clone for GoogleRealtimeConfig
impl Clone for GoogleRealtimeConfig
Source§fn clone(&self) -> GoogleRealtimeConfig
fn clone(&self) -> GoogleRealtimeConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GoogleRealtimeConfig
impl Debug for GoogleRealtimeConfig
Source§impl Default for GoogleRealtimeConfig
impl Default for GoogleRealtimeConfig
Source§fn default() -> GoogleRealtimeConfig
fn default() -> GoogleRealtimeConfig
Source§impl<'de> Deserialize<'de> for GoogleRealtimeConfig
impl<'de> Deserialize<'de> for GoogleRealtimeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl OpenApi for GoogleRealtimeConfig
impl OpenApi for GoogleRealtimeConfig
Source§fn openapi() -> OpenApi
fn openapi() -> OpenApi
openapi::OpenApi instance which can be parsed with serde or served via
OpenAPI visualization tool such as Swagger UI.