pub struct ClientMessageModelOutput {
pub phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>,
pub type: TypeTrue,
pub timestamp: Option<f64>,
pub call: Option<Call>,
pub customer: Option<CreateCustomerDto>,
pub assistant: Option<CreateAssistantDto>,
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.
call: Option<Call>
This is the call that the message is associated with.
customer: Option<CreateCustomerDto>
This is the customer that the message is associated with.
assistant: Option<CreateAssistantDto>
This is the assistant that the message is associated with.
output: Value
This is the output of the model. It can be a token or tool call.
Implementations§
Source§impl ClientMessageModelOutput
impl ClientMessageModelOutput
pub fn new(type: TypeTrue, output: Value) -> ClientMessageModelOutput
Trait Implementations§
Source§impl Clone for ClientMessageModelOutput
impl Clone for ClientMessageModelOutput
Source§fn clone(&self) -> ClientMessageModelOutput
fn clone(&self) -> ClientMessageModelOutput
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 ClientMessageModelOutput
impl Debug for ClientMessageModelOutput
Source§impl Default for ClientMessageModelOutput
impl Default for ClientMessageModelOutput
Source§fn default() -> ClientMessageModelOutput
fn default() -> ClientMessageModelOutput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientMessageModelOutput
impl<'de> Deserialize<'de> for ClientMessageModelOutput
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 ClientMessageModelOutput
impl PartialEq for ClientMessageModelOutput
Source§impl Serialize for ClientMessageModelOutput
impl Serialize for ClientMessageModelOutput
impl StructuralPartialEq for ClientMessageModelOutput
Auto Trait Implementations§
impl Freeze for ClientMessageModelOutput
impl RefUnwindSafe for ClientMessageModelOutput
impl Send for ClientMessageModelOutput
impl Sync for ClientMessageModelOutput
impl Unpin for ClientMessageModelOutput
impl UnwindSafe for ClientMessageModelOutput
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