vapi_client/models/
start_speaking_plan_smart_endpointing_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/// StartSpeakingPlanSmartEndpointingPlan : This is the plan for smart endpointing. Pick between Vapi smart endpointing or LiveKit smart endpointing (or nothing). We strongly recommend using livekit endpointing when working in English. LiveKit endpointing is not supported in other languages, yet.  If this is set, it will override and take precedence over `transcriptionEndpointingPlan`. This plan will still be overridden by any matching `customEndpointingRules`.
15/// This is the plan for smart endpointing. Pick between Vapi smart endpointing or LiveKit smart endpointing (or nothing). We strongly recommend using livekit endpointing when working in English. LiveKit endpointing is not supported in other languages, yet.  If this is set, it will override and take precedence over `transcriptionEndpointingPlan`. This plan will still be overridden by any matching `customEndpointingRules`.
16#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
17#[serde(untagged)]
18pub enum StartSpeakingPlanSmartEndpointingPlan {
19    VapiSmartEndpointingPlan(models::VapiSmartEndpointingPlan),
20    LivekitSmartEndpointingPlan(models::LivekitSmartEndpointingPlan),
21}
22
23impl Default for StartSpeakingPlanSmartEndpointingPlan {
24    fn default() -> Self {
25        Self::VapiSmartEndpointingPlan(Default::default())
26    }
27}
28/// This is the provider for the smart endpointing plan.
29#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
30pub enum ProviderTrue {
31    #[serde(rename = "vapi")]
32    Vapi,
33    #[serde(rename = "livekit")]
34    Livekit,
35}
36
37impl Default for ProviderTrue {
38    fn default() -> ProviderTrue {
39        Self::Vapi
40    }
41}