pub struct ServerMessageStatusUpdate {Show 15 fields
pub phone_number: Option<Box<ServerMessageAssistantRequestPhoneNumber>>,
pub type: Type,
pub status: Status,
pub ended_reason: Option<EndedReason>,
pub messages: Option<Vec<ArtifactMessagesInner>>,
pub messages_open_ai_formatted: Option<Vec<OpenAiMessage>>,
pub destination: Option<Box<ServerMessageStatusUpdateDestination>>,
pub timestamp: Option<String>,
pub artifact: Option<Box<Artifact>>,
pub assistant: Option<Box<CreateAssistantDto>>,
pub customer: Option<Box<CreateCustomerDto>>,
pub call: Option<Box<Call>>,
pub transcript: Option<String>,
pub summary: Option<String>,
pub inbound_phone_call_debugging_artifacts: Option<Value>,
}Fields§
§phone_number: Option<Box<ServerMessageAssistantRequestPhoneNumber>>§type: TypeThis is the type of the message. "status-update" is sent whenever the call.status changes.
status: StatusThis is the status of the call.
ended_reason: Option<EndedReason>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<Box<ServerMessageStatusUpdateDestination>>§timestamp: Option<String>This is the ISO-8601 formatted timestamp of when the message was sent.
artifact: Option<Box<Artifact>>This is a live version of the call.artifact. This matches what is stored on call.artifact after the call.
assistant: Option<Box<CreateAssistantDto>>This is the assistant that is currently active. This is provided for convenience. This matches one of the following: - call.assistant, - call.assistantId, - call.squad[n].assistant, - call.squad[n].assistantId, - call.squadId->[n].assistant, - call.squadId->[n].assistantId.
customer: Option<Box<CreateCustomerDto>>This is the customer associated with the call. This matches one of the following: - call.customer, - call.customerId.
call: Option<Box<Call>>This is the call object. This matches what was returned in POST /call. Note: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.
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: Type, status: Status) -> 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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more