vapi-client 0.4.2

Unofficial crate for Vapi - Voice AI for developers.
Documentation
/*
 * Vapi API
 *
 * Voice AI for developers.
 *
 * The version of the OpenAPI document: 1.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AnthropicThinkingConfig {
    #[serde(rename = "type")]
    pub r#type: TypeTrue,
    /// The maximum number of tokens to allocate for thinking. Must be between 1024 and 100000 tokens.
    #[serde(rename = "budgetTokens")]
    pub budget_tokens: f64,
}

impl AnthropicThinkingConfig {
    pub fn new(r#type: TypeTrue, budget_tokens: f64) -> AnthropicThinkingConfig {
        AnthropicThinkingConfig {
            r#type,
            budget_tokens,
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum TypeTrue {
    #[serde(rename = "enabled")]
    Enabled,
}

impl Default for TypeTrue {
    fn default() -> TypeTrue {
        Self::Enabled
    }
}