vapi_client/models/
create_transfer_call_tool_dto_destinations_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 CreateTransferCallToolDtoDestinationsInner {
17    TransferDestinationAssistant(models::TransferDestinationAssistant),
18    TransferDestinationNumber(models::TransferDestinationNumber),
19    TransferDestinationSip(models::TransferDestinationSip),
20}
21
22impl Default for CreateTransferCallToolDtoDestinationsInner {
23    fn default() -> Self {
24        Self::TransferDestinationAssistant(Default::default())
25    }
26}
27///
28#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
29pub enum TypeTrue {
30    #[serde(rename = "assistant")]
31    Assistant,
32    #[serde(rename = "number")]
33    Number,
34    #[serde(rename = "sip")]
35    Sip,
36}
37
38impl Default for TypeTrue {
39    fn default() -> TypeTrue {
40        Self::Assistant
41    }
42}
43/// This is the mode to use for the transfer. Defaults to `rolling-history`.  - `rolling-history`: This is the default mode. It keeps the entire conversation history and appends the new assistant's system message on transfer.    Example:    Pre-transfer:     system: assistant1 system message     assistant: assistant1 first message     user: hey, good morning     assistant: how can i help?     user: i need help with my account     assistant: (destination.message)    Post-transfer:     system: assistant1 system message     assistant: assistant1 first message     user: hey, good morning     assistant: how can i help?     user: i need help with my account     assistant: (destination.message)     system: assistant2 system message     assistant: assistant2 first message (or model generated if firstMessageMode is set to `assistant-speaks-first-with-model-generated-message`)  - `swap-system-message-in-history`: This replaces the original system message with the new assistant's system message on transfer.    Example:    Pre-transfer:     system: assistant1 system message     assistant: assistant1 first message     user: hey, good morning     assistant: how can i help?     user: i need help with my account     assistant: (destination.message)    Post-transfer:     system: assistant2 system message     assistant: assistant1 first message     user: hey, good morning     assistant: how can i help?     user: i need help with my account     assistant: (destination.message)     assistant: assistant2 first message (or model generated if firstMessageMode is set to `assistant-speaks-first-with-model-generated-message`)  - `delete-history`: This deletes the entire conversation history on transfer.    Example:    Pre-transfer:     system: assistant1 system message     assistant: assistant1 first message     user: hey, good morning     assistant: how can i help?     user: i need help with my account     assistant: (destination.message)    Post-transfer:     system: assistant2 system message     assistant: assistant2 first message     user: Yes, please     assistant: how can i help?     user: i need help with my account  - `swap-system-message-in-history-and-remove-transfer-tool-messages`: This replaces the original system message with the new assistant's system message on transfer and removes transfer tool messages from conversation history sent to the LLM.    Example:    Pre-transfer:     system: assistant1 system message     assistant: assistant1 first message     user: hey, good morning     assistant: how can i help?     user: i need help with my account     transfer-tool     transfer-tool-result     assistant: (destination.message)    Post-transfer:     system: assistant2 system message     assistant: assistant1 first message     user: hey, good morning     assistant: how can i help?     user: i need help with my account     assistant: (destination.message)     assistant: assistant2 first message (or model generated if firstMessageMode is set to `assistant-speaks-first-with-model-generated-message`)  @default 'rolling-history'
44#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
45pub enum TransferModeTrue {
46    #[serde(rename = "rolling-history")]
47    RollingHistory,
48    #[serde(rename = "swap-system-message-in-history")]
49    SwapSystemMessageInHistory,
50    #[serde(rename = "swap-system-message-in-history-and-remove-transfer-tool-messages")]
51    SwapSystemMessageInHistoryAndRemoveTransferToolMessages,
52    #[serde(rename = "delete-history")]
53    DeleteHistory,
54}
55
56impl Default for TransferModeTrue {
57    fn default() -> TransferModeTrue {
58        Self::RollingHistory
59    }
60}