vapi_client/models/
analysis_plan.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 AnalysisPlan {
16    /// This is the plan for generating the summary of the call. This outputs to `call.analysis.summary`.
17    #[serde(rename = "summaryPlan", skip_serializing_if = "Option::is_none")]
18    pub summary_plan: Option<models::SummaryPlan>,
19    /// This is the plan for generating the structured data from the call. This outputs to `call.analysis.structuredData`.
20    #[serde(rename = "structuredDataPlan", skip_serializing_if = "Option::is_none")]
21    pub structured_data_plan: Option<models::StructuredDataPlan>,
22    /// This is an array of structured data plan catalogs. Each entry includes a `key` and a `plan` for generating the structured data from the call. This outputs to `call.analysis.structuredDataMulti`.
23    #[serde(rename = "structuredDataMultiPlan", skip_serializing_if = "Option::is_none")]
24    pub structured_data_multi_plan: Option<Vec<models::StructuredDataMultiPlan>>,
25    /// This is the plan for generating the success evaluation of the call. This outputs to `call.analysis.successEvaluation`.
26    #[serde(rename = "successEvaluationPlan", skip_serializing_if = "Option::is_none")]
27    pub success_evaluation_plan: Option<models::SuccessEvaluationPlan>,
28}
29
30impl AnalysisPlan {
31    pub fn new() -> AnalysisPlan {
32        AnalysisPlan {
33            summary_plan: None,
34            structured_data_plan: None,
35            structured_data_multi_plan: None,
36            success_evaluation_plan: None,
37        }
38    }
39}
40