/*
* server
*
* ## 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 - Self-hosted deployments: interactive API reference at `/api/docs` and OpenAPI spec at `/api/openapi.yaml`
*
* The version of the OpenAPI document:
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// UnstablePublicEvaluatorOutputDefinition : Evaluator output definition returned by the public API. This response always includes `dataType` and never includes an internal output-definition `version`. Legacy stored evaluator definitions are normalized into this shape before they are returned. Use this response shape when deciding how to interpret future evaluation scores: - `NUMERIC`: expect numeric score values - `BOOLEAN`: expect `true` / `false` - `CATEGORICAL`: expect one or more values from `score.categories`
/// Evaluator output definition returned by the public API. This response always includes `dataType` and never includes an internal output-definition `version`. Legacy stored evaluator definitions are normalized into this shape before they are returned. Use this response shape when deciding how to interpret future evaluation scores: - `NUMERIC`: expect numeric score values - `BOOLEAN`: expect `true` / `false` - `CATEGORICAL`: expect one or more values from `score.categories`
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum UnstablePublicEvaluatorOutputDefinition {
UnstablePublicNumericEvaluatorOutputDefinition(
Box<models::UnstablePublicNumericEvaluatorOutputDefinition>,
),
UnstablePublicBooleanEvaluatorOutputDefinition(
Box<models::UnstablePublicBooleanEvaluatorOutputDefinition>,
),
UnstablePublicCategoricalEvaluatorOutputDefinition(
Box<models::UnstablePublicCategoricalEvaluatorOutputDefinition>,
),
}
impl Default for UnstablePublicEvaluatorOutputDefinition {
fn default() -> Self {
Self::UnstablePublicNumericEvaluatorOutputDefinition(Default::default())
}
}