pub struct ServerMessageToolCalls {
pub phone_number: Option<ServerMessageAssistantRequestPhoneNumber>,
pub type: Option<Type>,
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 tool_call_list: Vec<ToolCall>,
}Fields§
§phone_number: Option<ServerMessageAssistantRequestPhoneNumber>§type: Option<Type>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 ISO-8601 formatted timestamp of when the message was sent.
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 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<CreateCustomerDto>This is the customer associated with the call. This matches one of the following: - call.customer, - call.customerId.
call: Option<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.
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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>,
Source§impl OpenApi for ServerMessageToolCalls
impl OpenApi for ServerMessageToolCalls
Source§fn openapi() -> OpenApi
fn openapi() -> OpenApi
openapi::OpenApi instance which can be parsed with serde or served via
OpenAPI visualization tool such as Swagger UI.