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};

/// ConversationNodeModel : This is the model for the node.  This overrides `workflow.model`.
/// This is the model for the node.  This overrides `workflow.model`.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ConversationNodeModel {
    WorkflowOpenAiModel(models::WorkflowOpenAiModel),
    WorkflowAnthropicModel(models::WorkflowAnthropicModel),
    WorkflowGoogleModel(models::WorkflowGoogleModel),
    WorkflowCustomModel(models::WorkflowCustomModel),
}

impl Default for ConversationNodeModel {
    fn default() -> Self {
        Self::WorkflowOpenAiModel(Default::default())
    }
}
/// This is the provider of the model (`custom`).
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ProviderTrue {
    #[serde(rename = "custom")]
    Custom,
}

impl Default for ProviderTrue {
    fn default() -> ProviderTrue {
        Self::Custom
    }
}