langfuse-client-base 0.13.0

Auto-generated Langfuse API client from OpenAPI specification
Documentation
/*
 * langfuse
 *
 * ## Authentication  Authenticate with the API using [Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication), get API keys in the project settings:  - username: Langfuse Public Key - password: Langfuse Secret Key  ## Exports  - OpenAPI spec: https://cloud.langfuse.com/generated/api/openapi.yml
 *
 * The version of the OpenAPI document:
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// UnstableEvaluationRuleTarget : The ingestion object type that should trigger evaluation runs.  Choose the target first, because it changes both the valid filter columns and the valid variable-mapping sources: - `observation` evaluates live-ingested observations such as generations, spans, and events.   It supports mapping from `input`, `output`, and `metadata`. - `experiment` evaluates live experiment executions and can additionally map `expected_output`.   It currently supports filtering by `datasetId`.   Discover valid dataset IDs with `GET /api/public/v2/datasets`, then use the returned dataset `id` values in your filter.
/// The ingestion object type that should trigger evaluation runs.  Choose the target first, because it changes both the valid filter columns and the valid variable-mapping sources: - `observation` evaluates live-ingested observations such as generations, spans, and events.   It supports mapping from `input`, `output`, and `metadata`. - `experiment` evaluates live experiment executions and can additionally map `expected_output`.   It currently supports filtering by `datasetId`.   Discover valid dataset IDs with `GET /api/public/v2/datasets`, then use the returned dataset `id` values in your filter.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum UnstableEvaluationRuleTarget {
    #[serde(rename = "observation")]
    Observation,
    #[serde(rename = "experiment")]
    Experiment,
}

impl std::fmt::Display for UnstableEvaluationRuleTarget {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Observation => write!(f, "observation"),
            Self::Experiment => write!(f, "experiment"),
        }
    }
}

impl Default for UnstableEvaluationRuleTarget {
    fn default() -> UnstableEvaluationRuleTarget {
        Self::Observation
    }
}