openai_struct/models/
create_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 CreateEvalLabelModelGrader : 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 CreateEvalLabelModelGrader {
18    /// A list of chat messages forming the prompt or context. May include variable references to the \"item\" namespace, ie {{item.name}}.
19    #[serde(rename = "input")]
20    pub input: Vec<crate::models::CreateEvalItem>,
21    /// The labels to classify to each item in the evaluation.
22    #[serde(rename = "labels")]
23    pub labels: Vec<String>,
24    /// The model to use for the evaluation. Must support structured outputs.
25    #[serde(rename = "model")]
26    pub model: String,
27    /// The name of the grader.
28    #[serde(rename = "name")]
29    pub name: String,
30    /// The labels that indicate a passing result. Must be a subset of labels.
31    #[serde(rename = "passing_labels")]
32    pub passing_labels: Vec<String>,
33    /// The object type, which is always `label_model`.
34    #[serde(rename = "type")]
35    pub _type: String,
36}