openai_struct/models/eval.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 Eval : An Eval object with a data source config and testing criteria. An Eval represents a task to be done for your LLM integration. Like: - Improve the quality of my chatbot - See how well my chatbot handles customer support - Check if o3-mini is better at my usecase than gpt-4o
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct Eval {
18 /// The Unix timestamp (in seconds) for when the eval was created.
19 #[serde(rename = "created_at")]
20 pub created_at: i32,
21 /// Configuration of data sources used in runs of the evaluation.
22 #[serde(rename = "data_source_config")]
23 pub data_source_config: Value,
24 /// Unique identifier for the evaluation.
25 #[serde(rename = "id")]
26 pub id: String,
27 #[serde(rename = "metadata")]
28 pub metadata: crate::models::Metadata,
29 /// The name of the evaluation.
30 #[serde(rename = "name")]
31 pub name: String,
32 /// The object type.
33 #[serde(rename = "object")]
34 pub object: String,
35 /// A list of testing criteria.
36 #[serde(rename = "testing_criteria")]
37 pub testing_criteria: Vec<Value>,
38}