vapi_client/models/
client_message_tool_calls_result.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 ClientMessageToolCallsResult {
16    /// This is the type of the message. \"tool-calls-result\" is sent to forward the result of a tool call to the client.
17    #[serde(rename = "type")]
18    pub r#type: Type,
19    /// This is the result of the tool call.
20    #[serde(rename = "toolCallResult")]
21    pub tool_call_result: serde_json::Value,
22}
23
24impl ClientMessageToolCallsResult {
25    pub fn new(r#type: Type, tool_call_result: serde_json::Value) -> ClientMessageToolCallsResult {
26        ClientMessageToolCallsResult {
27            r#type,
28            tool_call_result,
29        }
30    }
31}
32/// This is the type of the message. \"tool-calls-result\" is sent to forward the result of a tool call to the client.
33#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
34pub enum Type {
35    #[serde(rename = "tool-calls-result")]
36    ToolCallsResult,
37}
38
39impl Default for Type {
40    fn default() -> Type {
41        Self::ToolCallsResult
42    }
43}
44