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    /// The minimum number of messages required to run the analysis plan. If the number of messages is less than this, analysis will be skipped. @default 2
17    #[serde(
18        rename = "minMessagesThreshold",
19        skip_serializing_if = "Option::is_none"
20    )]
21    pub min_messages_threshold: Option<f64>,
22    /// This is the plan for generating the summary of the call. This outputs to `call.analysis.summary`.
23    #[serde(rename = "summaryPlan", skip_serializing_if = "Option::is_none")]
24    pub summary_plan: Option<models::SummaryPlan>,
25    /// This is the plan for generating the structured data from the call. This outputs to `call.analysis.structuredData`.
26    #[serde(rename = "structuredDataPlan", skip_serializing_if = "Option::is_none")]
27    pub structured_data_plan: Option<models::StructuredDataPlan>,
28    /// 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`.
29    #[serde(
30        rename = "structuredDataMultiPlan",
31        skip_serializing_if = "Option::is_none"
32    )]
33    pub structured_data_multi_plan: Option<Vec<models::StructuredDataMultiPlan>>,
34    /// This is the plan for generating the success evaluation of the call. This outputs to `call.analysis.successEvaluation`.
35    #[serde(
36        rename = "successEvaluationPlan",
37        skip_serializing_if = "Option::is_none"
38    )]
39    pub success_evaluation_plan: Option<models::SuccessEvaluationPlan>,
40}
41
42impl AnalysisPlan {
43    pub fn new() -> AnalysisPlan {
44        AnalysisPlan {
45            min_messages_threshold: None,
46            summary_plan: None,
47            structured_data_plan: None,
48            structured_data_multi_plan: None,
49            success_evaluation_plan: None,
50        }
51    }
52}