vapi_client/models/
server_message_response_tool_calls.rs

1/*
2 * Vapi API
3 *
4 * Voice AI for developers.
5 *
6 * The version of the OpenAPI document: 1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ServerMessageResponseToolCalls {
16    /// These are the results of the \"tool-calls\" message.
17    #[serde(rename = "results", skip_serializing_if = "Option::is_none")]
18    pub results: Option<Vec<models::ToolCallResult>>,
19    /// This is the error message if the tool call was not successful.
20    #[serde(rename = "error", skip_serializing_if = "Option::is_none")]
21    pub error: Option<String>,
22}
23
24impl ServerMessageResponseToolCalls {
25    pub fn new() -> ServerMessageResponseToolCalls {
26        ServerMessageResponseToolCalls {
27            results: None,
28            error: None,
29        }
30    }
31}