pub struct TransferDestinationAssistant {
pub message: Option<TransferDestinationAssistantMessage>,
pub type: TypeTrue,
pub transfer_mode: Option<TransferModeTrue>,
pub assistant_name: String,
pub description: Option<String>,
}
Fields§
§message: Option<TransferDestinationAssistantMessage>
§type: TypeTrue
§transfer_mode: Option<TransferModeTrue>
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’
assistant_name: String
This is the assistant to transfer the call to.
description: Option<String>
This is the description of the destination, used by the AI to choose when and how to transfer the call.
Implementations§
Source§impl TransferDestinationAssistant
impl TransferDestinationAssistant
pub fn new( type: TypeTrue, assistant_name: String, ) -> TransferDestinationAssistant
Trait Implementations§
Source§impl Clone for TransferDestinationAssistant
impl Clone for TransferDestinationAssistant
Source§fn clone(&self) -> TransferDestinationAssistant
fn clone(&self) -> TransferDestinationAssistant
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TransferDestinationAssistant
impl Debug for TransferDestinationAssistant
Source§impl Default for TransferDestinationAssistant
impl Default for TransferDestinationAssistant
Source§fn default() -> TransferDestinationAssistant
fn default() -> TransferDestinationAssistant
Source§impl<'de> Deserialize<'de> for TransferDestinationAssistant
impl<'de> Deserialize<'de> for TransferDestinationAssistant
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for TransferDestinationAssistant
impl PartialEq for TransferDestinationAssistant
Source§fn eq(&self, other: &TransferDestinationAssistant) -> bool
fn eq(&self, other: &TransferDestinationAssistant) -> bool
self
and other
values to be equal, and is used by ==
.