pub struct ServerMessageModelOutput {
pub phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>,
pub type: TypeTrue,
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 output: Value,
}
Fields§
§phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>
§type: TypeTrue
This is the type of the message. "model-output" is sent as the model outputs tokens.
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.
output: Value
This is the output of the model. It can be a token or tool call.
Implementations§
Source§impl ServerMessageModelOutput
impl ServerMessageModelOutput
pub fn new(type: TypeTrue, output: Value) -> ServerMessageModelOutput
Trait Implementations§
Source§impl Clone for ServerMessageModelOutput
impl Clone for ServerMessageModelOutput
Source§fn clone(&self) -> ServerMessageModelOutput
fn clone(&self) -> ServerMessageModelOutput
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ServerMessageModelOutput
impl Debug for ServerMessageModelOutput
Source§impl Default for ServerMessageModelOutput
impl Default for ServerMessageModelOutput
Source§fn default() -> ServerMessageModelOutput
fn default() -> ServerMessageModelOutput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerMessageModelOutput
impl<'de> Deserialize<'de> for ServerMessageModelOutput
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ServerMessageModelOutput
impl PartialEq for ServerMessageModelOutput
Source§impl Serialize for ServerMessageModelOutput
impl Serialize for ServerMessageModelOutput
impl StructuralPartialEq for ServerMessageModelOutput
Auto Trait Implementations§
impl Freeze for ServerMessageModelOutput
impl RefUnwindSafe for ServerMessageModelOutput
impl Send for ServerMessageModelOutput
impl Sync for ServerMessageModelOutput
impl Unpin for ServerMessageModelOutput
impl UnwindSafe for ServerMessageModelOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more