openai_struct/models/create_eval_custom_data_source_config.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 CreateEvalCustomDataSourceConfig : A CustomDataSourceConfig object that defines the schema for the data source used for the evaluation runs. This schema is used to define the shape of the data that will be: - Used to define your testing criteria and - What data is required when creating a run
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16// #[derive(Debug, Serialize, Deserialize)]
17// pub struct CreateEvalCustomDataSourceConfig {
18// /// Whether the eval should expect you to populate the sample namespace (ie, by generating responses off of your data source)
19// #[serde(rename = "include_sample_schema")]
20// pub include_sample_schema: Option<bool>,
21// /// The json schema for each row in the data source.
22// #[serde(rename = "item_schema")]
23// pub item_schema: ::std::collections::HashMap<String, pub crate::models::Object>,
24// /// The type of data source. Always `custom`.
25// #[serde(rename = "type")]
26// pub _type: String
27// }