pub struct ServerMessageToolCalls {
pub phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>,
pub type: Option<TypeTrue>,
pub tool_with_tool_call_list: Vec<ClientMessageToolCallsToolWithToolCallListInner>,
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 tool_call_list: Vec<ToolCall>,
}
Fields§
§phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>
§type: Option<TypeTrue>
This is the type of the message. "tool-calls" is sent to call a tool.
tool_with_tool_call_list: Vec<ClientMessageToolCallsToolWithToolCallListInner>
This is the list of tools calls that the model is requesting along with the original tool configuration.
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.
tool_call_list: Vec<ToolCall>
This is the list of tool calls that the model is requesting.
Implementations§
Source§impl ServerMessageToolCalls
impl ServerMessageToolCalls
pub fn new( tool_with_tool_call_list: Vec<ClientMessageToolCallsToolWithToolCallListInner>, tool_call_list: Vec<ToolCall>, ) -> ServerMessageToolCalls
Trait Implementations§
Source§impl Clone for ServerMessageToolCalls
impl Clone for ServerMessageToolCalls
Source§fn clone(&self) -> ServerMessageToolCalls
fn clone(&self) -> ServerMessageToolCalls
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 ServerMessageToolCalls
impl Debug for ServerMessageToolCalls
Source§impl Default for ServerMessageToolCalls
impl Default for ServerMessageToolCalls
Source§fn default() -> ServerMessageToolCalls
fn default() -> ServerMessageToolCalls
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerMessageToolCalls
impl<'de> Deserialize<'de> for ServerMessageToolCalls
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 ServerMessageToolCalls
impl PartialEq for ServerMessageToolCalls
Source§impl Serialize for ServerMessageToolCalls
impl Serialize for ServerMessageToolCalls
impl StructuralPartialEq for ServerMessageToolCalls
Auto Trait Implementations§
impl Freeze for ServerMessageToolCalls
impl RefUnwindSafe for ServerMessageToolCalls
impl Send for ServerMessageToolCalls
impl Sync for ServerMessageToolCalls
impl Unpin for ServerMessageToolCalls
impl UnwindSafe for ServerMessageToolCalls
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