vapi_client/models/
langfuse_observability_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 LangfuseObservabilityPlan {
16    #[serde(rename = "provider")]
17    pub provider: ProviderTrue,
18    /// This is an array of tags to be added to the Langfuse trace. Tags allow you to categorize and filter traces. https://langfuse.com/docs/tracing-features/tags
19    #[serde(rename = "tags")]
20    pub tags: Vec<String>,
21    /// This is a JSON object that will be added to the Langfuse trace. Traces can be enriched with metadata to better understand your users, application, and experiments. https://langfuse.com/docs/tracing-features/metadata By default it includes the call metadata, assistant metadata, and assistant overrides.
22    #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
23    pub metadata: Option<serde_json::Value>,
24}
25
26impl LangfuseObservabilityPlan {
27    pub fn new(provider: ProviderTrue, tags: Vec<String>) -> LangfuseObservabilityPlan {
28        LangfuseObservabilityPlan {
29            provider,
30            tags,
31            metadata: None,
32        }
33    }
34}
35///
36#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
37pub enum ProviderTrue {
38    #[serde(rename = "langfuse")]
39    Langfuse,
40}
41
42impl Default for ProviderTrue {
43    fn default() -> ProviderTrue {
44        Self::Langfuse
45    }
46}