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};
12use utoipa::OpenApi;
13
14
15use crate::models;
16
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, OpenApi)]
18pub struct ServerMessageResponseToolCalls {
19    /// These are the results of the \"tool-calls\" message.
20    #[serde(rename = "results", skip_serializing_if = "Option::is_none")]
21    pub results: Option<Vec<models::ToolCallResult>>,
22    /// This is the error message if the tool call was not successful.
23    #[serde(rename = "error", skip_serializing_if = "Option::is_none")]
24    pub error: Option<String>,
25}
26
27impl ServerMessageResponseToolCalls {
28    pub fn new() -> ServerMessageResponseToolCalls {
29        ServerMessageResponseToolCalls {
30            results: None,
31            error: None,
32        }
33    }
34}