vapi_client/models/google_realtime_config.rs
1/*
2 * Vapi API
3 *
4 * Voice AI for developers.
5 *
6 * The version of the OpenAPI document: 1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GoogleRealtimeConfig {
16 /// 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.
17 #[serde(rename = "topP", skip_serializing_if = "Option::is_none")]
18 pub top_p: Option<f64>,
19 /// 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.
20 #[serde(rename = "topK", skip_serializing_if = "Option::is_none")]
21 pub top_k: Option<f64>,
22 /// 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.
23 #[serde(rename = "presencePenalty", skip_serializing_if = "Option::is_none")]
24 pub presence_penalty: Option<f64>,
25 /// 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.
26 #[serde(rename = "frequencyPenalty", skip_serializing_if = "Option::is_none")]
27 pub frequency_penalty: Option<f64>,
28 /// 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.
29 #[serde(rename = "speechConfig", skip_serializing_if = "Option::is_none")]
30 pub speech_config: Option<models::GeminiMultimodalLiveSpeechConfig>,
31}
32
33impl GoogleRealtimeConfig {
34 pub fn new() -> GoogleRealtimeConfig {
35 GoogleRealtimeConfig {
36 top_p: None,
37 top_k: None,
38 presence_penalty: None,
39 frequency_penalty: None,
40 speech_config: None,
41 }
42 }
43}