openai_struct/models/eval_string_check_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 EvalStringCheckGrader : A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct EvalStringCheckGrader {
18 /// The input text. This may include template strings.
19 #[serde(rename = "input")]
20 pub input: String,
21 /// The name of the grader.
22 #[serde(rename = "name")]
23 pub name: String,
24 /// The string check operation to perform. One of `eq`, `ne`, `like`, or `ilike`.
25 #[serde(rename = "operation")]
26 pub operation: String,
27 /// The reference text. This may include template strings.
28 #[serde(rename = "reference")]
29 pub reference: String,
30 /// The object type, which is always `string_check`.
31 #[serde(rename = "type")]
32 pub _type: String,
33}