vapi_client/models/
tool_call_function.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 ToolCallFunction {
16    /// This is the name of the function the model called.
17    #[serde(rename = "name")]
18    pub name: String,
19    /// These are the arguments that the function was called with.
20    #[serde(rename = "arguments")]
21    pub arguments: serde_json::Value,
22}
23
24impl ToolCallFunction {
25    pub fn new(name: String, arguments: serde_json::Value) -> ToolCallFunction {
26        ToolCallFunction {
27            name,
28            arguments,
29        }
30    }
31}
32