vapi_client/models/
anthropic_thinking_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 AnthropicThinkingConfig {
16    #[serde(rename = "type")]
17    pub r#type: Type,
18    /// The maximum number of tokens to allocate for thinking. Must be between 1024 and 100000 tokens.
19    #[serde(rename = "budgetTokens")]
20    pub budget_tokens: f64,
21}
22
23impl AnthropicThinkingConfig {
24    pub fn new(r#type: Type, budget_tokens: f64) -> AnthropicThinkingConfig {
25        AnthropicThinkingConfig {
26            r#type,
27            budget_tokens,
28        }
29    }
30}
31/// 
32#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
33pub enum Type {
34    #[serde(rename = "enabled")]
35    Enabled,
36}
37
38impl Default for Type {
39    fn default() -> Type {
40        Self::Enabled
41    }
42}
43