openai_struct/models/eval_stored_completions_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 EvalStoredCompletionsDataSourceConfig : A StoredCompletionsDataSourceConfig which specifies the metadata property of your stored completions query. This is usually metadata like `usecase=chatbot` or `prompt-version=v2`, etc. The schema returned by this data source config is used to defined what variables are available in your evals. `item` and `sample` are both defined when using this data source config.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16// #[derive(Debug, Serialize, Deserialize)]
17// pub struct EvalStoredCompletionsDataSourceConfig {
18// #[serde(rename = "metadata")]
19// pub metadata: Option<crate::models::Metadata>,
20// /// The json schema for the run data source items. Learn how to build JSON schemas [here](pub https://json-schema.org/).
21// #[serde(rename = "schema")]
22// pub schema: ::std::collections::HashMap<String, pub crate::models::Object>,
23// /// The type of data source. Always `stored_completions`.
24// #[serde(rename = "type")]
25// pub _type: String
26// }