vapi_client/models/
analysis_cost_breakdown.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 AnalysisCostBreakdown {
16    /// This is the cost to summarize the call.
17    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
18    pub summary: Option<f64>,
19    /// This is the number of prompt tokens used to summarize the call.
20    #[serde(rename = "summaryPromptTokens", skip_serializing_if = "Option::is_none")]
21    pub summary_prompt_tokens: Option<f64>,
22    /// This is the number of completion tokens used to summarize the call.
23    #[serde(rename = "summaryCompletionTokens", skip_serializing_if = "Option::is_none")]
24    pub summary_completion_tokens: Option<f64>,
25    /// This is the cost to extract structured data from the call.
26    #[serde(rename = "structuredData", skip_serializing_if = "Option::is_none")]
27    pub structured_data: Option<f64>,
28    /// This is the number of prompt tokens used to extract structured data from the call.
29    #[serde(rename = "structuredDataPromptTokens", skip_serializing_if = "Option::is_none")]
30    pub structured_data_prompt_tokens: Option<f64>,
31    /// This is the number of completion tokens used to extract structured data from the call.
32    #[serde(rename = "structuredDataCompletionTokens", skip_serializing_if = "Option::is_none")]
33    pub structured_data_completion_tokens: Option<f64>,
34    /// This is the cost to evaluate if the call was successful.
35    #[serde(rename = "successEvaluation", skip_serializing_if = "Option::is_none")]
36    pub success_evaluation: Option<f64>,
37    /// This is the number of prompt tokens used to evaluate if the call was successful.
38    #[serde(rename = "successEvaluationPromptTokens", skip_serializing_if = "Option::is_none")]
39    pub success_evaluation_prompt_tokens: Option<f64>,
40    /// This is the number of completion tokens used to evaluate if the call was successful.
41    #[serde(rename = "successEvaluationCompletionTokens", skip_serializing_if = "Option::is_none")]
42    pub success_evaluation_completion_tokens: Option<f64>,
43}
44
45impl AnalysisCostBreakdown {
46    pub fn new() -> AnalysisCostBreakdown {
47        AnalysisCostBreakdown {
48            summary: None,
49            summary_prompt_tokens: None,
50            summary_completion_tokens: None,
51            structured_data: None,
52            structured_data_prompt_tokens: None,
53            structured_data_completion_tokens: None,
54            success_evaluation: None,
55            success_evaluation_prompt_tokens: None,
56            success_evaluation_completion_tokens: None,
57        }
58    }
59}
60