vapi_client/models/
conversation_node_model.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/// ConversationNodeModel : This is the model for the node.  This overrides `workflow.model`.
15/// This is the model for the node.  This overrides `workflow.model`.
16#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
17#[serde(untagged)]
18pub enum ConversationNodeModel {
19    WorkflowOpenAiModel(models::WorkflowOpenAiModel),
20    WorkflowAnthropicModel(models::WorkflowAnthropicModel),
21    WorkflowGoogleModel(models::WorkflowGoogleModel),
22    WorkflowCustomModel(models::WorkflowCustomModel),
23}
24
25impl Default for ConversationNodeModel {
26    fn default() -> Self {
27        Self::WorkflowOpenAiModel(Default::default())
28    }
29}
30/// This is the provider of the model (`custom`).
31#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
32pub enum ProviderTrue {
33    #[serde(rename = "custom")]
34    Custom,
35}
36
37impl Default for ProviderTrue {
38    fn default() -> ProviderTrue {
39        Self::Custom
40    }
41}