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 */
1011use crate::models;
12use serde::{Deserialize, Serialize};
1314/// 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}
2425impl Default for ConversationNodeModel {
26fn default() -> Self {
27Self::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")]
34Custom,
35}
3637impl Default for ProviderTrue {
38fn default() -> ProviderTrue {
39Self::Custom
40 }
41}