vapi_client/models/
analysis.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 Analysis {
16    /// This is the summary of the call. Customize by setting `assistant.analysisPlan.summaryPrompt`.
17    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
18    pub summary: Option<String>,
19    /// This is the structured data extracted from the call. Customize by setting `assistant.analysisPlan.structuredDataPrompt` and/or `assistant.analysisPlan.structuredDataSchema`.
20    #[serde(rename = "structuredData", skip_serializing_if = "Option::is_none")]
21    pub structured_data: Option<serde_json::Value>,
22    /// This is the structured data catalog of the call. Customize by setting `assistant.analysisPlan.structuredDataMultiPlan`.
23    #[serde(
24        rename = "structuredDataMulti",
25        skip_serializing_if = "Option::is_none"
26    )]
27    pub structured_data_multi: Option<Vec<serde_json::Value>>,
28    /// This is the evaluation of the call. Customize by setting `assistant.analysisPlan.successEvaluationPrompt` and/or `assistant.analysisPlan.successEvaluationRubric`.
29    #[serde(rename = "successEvaluation", skip_serializing_if = "Option::is_none")]
30    pub success_evaluation: Option<String>,
31}
32
33impl Analysis {
34    pub fn new() -> Analysis {
35        Analysis {
36            summary: None,
37            structured_data: None,
38            structured_data_multi: None,
39            success_evaluation: None,
40        }
41    }
42}