openai_struct/models/
eval_label_model_grader.rs

1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11/// pub EvalLabelModelGrader : A LabelModelGrader object which uses a model to assign labels to each item in the evaluation.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct EvalLabelModelGrader {
18    #[serde(rename = "input")]
19    pub input: Vec<crate::models::EvalItem>,
20    /// The labels to assign to each item in the evaluation.
21    #[serde(rename = "labels")]
22    pub labels: Vec<String>,
23    /// The model to use for the evaluation. Must support structured outputs.
24    #[serde(rename = "model")]
25    pub model: String,
26    /// The name of the grader.
27    #[serde(rename = "name")]
28    pub name: String,
29    /// The labels that indicate a passing result. Must be a subset of labels.
30    #[serde(rename = "passing_labels")]
31    pub passing_labels: Vec<String>,
32    /// The object type, which is always `label_model`.
33    #[serde(rename = "type")]
34    pub _type: String,
35}