pub struct ServerMessageStatusUpdate {Show 16 fields
pub phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>,
pub type: TypeTrue,
pub status: StatusTrue,
pub ended_reason: Option<EndedReasonTrue>,
pub messages: Option<Vec<ArtifactMessagesInner>>,
pub messages_open_ai_formatted: Option<Vec<OpenAiMessage>>,
pub destination: Option<ServerMessageStatusUpdateDestination>,
pub timestamp: Option<f64>,
pub artifact: Option<Artifact>,
pub assistant: Option<CreateAssistantDto>,
pub customer: Option<CreateCustomerDto>,
pub call: Option<Call>,
pub chat: Option<Chat>,
pub transcript: Option<String>,
pub summary: Option<String>,
pub inbound_phone_call_debugging_artifacts: Option<Value>,
}
Fields§
§phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>
§type: TypeTrue
This is the type of the message. "status-update" is sent whenever the call.status
changes.
status: StatusTrue
This is the status of the call.
ended_reason: Option<EndedReasonTrue>
This is the reason the call ended. This is only sent if the status is "ended".
messages: Option<Vec<ArtifactMessagesInner>>
These are the conversation messages of the call. This is only sent if the status is "forwarding".
messages_open_ai_formatted: Option<Vec<OpenAiMessage>>
These are the conversation messages of the call. This is only sent if the status is "forwarding".
destination: Option<ServerMessageStatusUpdateDestination>
§timestamp: Option<f64>
This is the timestamp of the message.
artifact: Option<Artifact>
This is a live version of the call.artifact
. This matches what is stored on call.artifact
after the call.
assistant: Option<CreateAssistantDto>
This is the assistant that the message is associated with.
customer: Option<CreateCustomerDto>
This is the customer that the message is associated with.
call: Option<Call>
This is the call that the message is associated with.
chat: Option<Chat>
This is the chat object.
transcript: Option<String>
This is the transcript of the call. This is only sent if the status is "forwarding".
summary: Option<String>
This is the summary of the call. This is only sent if the status is "forwarding".
inbound_phone_call_debugging_artifacts: Option<Value>
This is the inbound phone call debugging artifacts. This is only sent if the status is "ended" and there was an error accepting the inbound phone call. This will include any errors related to the "assistant-request" if one was made.
Implementations§
Source§impl ServerMessageStatusUpdate
impl ServerMessageStatusUpdate
pub fn new(type: TypeTrue, status: StatusTrue) -> ServerMessageStatusUpdate
Trait Implementations§
Source§impl Clone for ServerMessageStatusUpdate
impl Clone for ServerMessageStatusUpdate
Source§fn clone(&self) -> ServerMessageStatusUpdate
fn clone(&self) -> ServerMessageStatusUpdate
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more