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 arguments to call the function with
17    #[serde(rename = "arguments")]
18    pub arguments: String,
19    /// This is the name of the function to call
20    #[serde(rename = "name")]
21    pub name: String,
22}
23
24impl ToolCallFunction {
25    pub fn new(arguments: String, name: String) -> ToolCallFunction {
26        ToolCallFunction { arguments, name }
27    }
28}