openai_struct/models/
create_eval_run_request.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#[allow(unused_imports)]
12use serde_json::Value;
13
14/// # on openapi.yaml
15///
16/// ```yaml
17/// CreateEvalRunRequest:
18///   type: object
19///   title: CreateEvalRunRequest
20///   properties:
21///     name:
22///       type: string
23///       description: The name of the run.
24///     metadata:
25///       $ref: "#/components/schemas/Metadata"
26///     data_source:
27///       type: object
28///       description: Details about the run's data source.
29///       oneOf:
30///         - $ref: "#/components/schemas/CreateEvalJsonlRunDataSource"
31///         - $ref: "#/components/schemas/CreateEvalCompletionsRunDataSource"
32///         - $ref: "#/components/schemas/CreateEvalResponsesRunDataSource"
33///   required:
34///     - data_source
35/// ```
36#[derive(Debug, Serialize, Deserialize)]
37pub struct CreateEvalRunRequest {
38    /// Details about the run's data source.
39    #[serde(rename = "data_source")]
40    pub data_source: Value,
41    #[serde(rename = "metadata")]
42    pub metadata: Option<crate::models::Metadata>,
43    /// The name of the run.
44    #[serde(rename = "name")]
45    pub name: Option<String>,
46}