vapi-client 0.4.2

Unofficial crate for Vapi - Voice AI for developers.
Documentation
/*
 * 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,
        }
    }
}