1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* Vapi API
*
* Voice AI for developers.
*
* The version of the OpenAPI document: 1.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AnalysisPlan {
/// 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
#[serde(
rename = "minMessagesThreshold",
skip_serializing_if = "Option::is_none"
)]
pub min_messages_threshold: Option<f64>,
/// This is the plan for generating the summary of the call. This outputs to `call.analysis.summary`.
#[serde(rename = "summaryPlan", skip_serializing_if = "Option::is_none")]
pub summary_plan: Option<models::SummaryPlan>,
/// This is the plan for generating the structured data from the call. This outputs to `call.analysis.structuredData`.
#[serde(rename = "structuredDataPlan", skip_serializing_if = "Option::is_none")]
pub structured_data_plan: Option<models::StructuredDataPlan>,
/// 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`.
#[serde(
rename = "structuredDataMultiPlan",
skip_serializing_if = "Option::is_none"
)]
pub structured_data_multi_plan: Option<Vec<models::StructuredDataMultiPlan>>,
/// This is the plan for generating the success evaluation of the call. This outputs to `call.analysis.successEvaluation`.
#[serde(
rename = "successEvaluationPlan",
skip_serializing_if = "Option::is_none"
)]
pub success_evaluation_plan: Option<models::SuccessEvaluationPlan>,
}
impl AnalysisPlan {
pub fn new() -> AnalysisPlan {
AnalysisPlan {
min_messages_threshold: None,
summary_plan: None,
structured_data_plan: None,
structured_data_multi_plan: None,
success_evaluation_plan: None,
}
}
}