vapi_client/models/
tool_call.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ToolCall {
16 #[serde(rename = "id")]
18 pub id: String,
19 #[serde(rename = "type")]
21 pub r#type: String,
22 #[serde(rename = "function")]
24 pub function: models::ToolCallFunction,
25}
26
27impl ToolCall {
28 pub fn new(id: String, r#type: String, function: models::ToolCallFunction) -> ToolCall {
29 ToolCall {
30 id,
31 r#type,
32 function,
33 }
34 }
35}