vapi_client/models/
workflow_user_editable_nodes_inner.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, Debug, PartialEq, Serialize, Deserialize)]
15#[serde(untagged)]
16pub enum WorkflowUserEditableNodesInner {
17    ConversationNode(models::ConversationNode),
18    ToolNode(models::ToolNode),
19}
20
21impl Default for WorkflowUserEditableNodesInner {
22    fn default() -> Self {
23        Self::ConversationNode(Default::default())
24    }
25}
26/// This is the Conversation node. This can be used to start a conversation with the customer.  The flow is: - Workflow starts the conversation node - Model is active with the `prompt` and global context. - Model will call a tool to exit this node. - Workflow will extract variables from the conversation. - Workflow continues.
27#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
28pub enum TypeTrue {
29    #[serde(rename = "conversation")]
30    Conversation,
31    #[serde(rename = "tool")]
32    Tool,
33}
34
35impl Default for TypeTrue {
36    fn default() -> TypeTrue {
37        Self::Conversation
38    }
39}