vapi_client/models/
server_message_response_tool_calls.rs

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