class

OpenAI::GraderStringCheck

Inherits JSON::Serializable < Reference < Object

A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.

Constructors

new(type_value : GraderStringCheckType = GraderStringCheckType::StringCheck, name : String = "", input : String = "", reference : String = "", operation : GraderStringCheckOperation = GraderStringCheckOperation::Eq)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

input

The input text. This may include template strings.

Source
input=(input : String)

The input text. This may include template strings.

Source
name

The name of the grader.

Source
name=(name : String)

The name of the grader.

Source
operation

The string check operation to perform. One of eq, ne, like, or ilike.

Source
operation=(operation : GraderStringCheckOperation)

The string check operation to perform. One of eq, ne, like, or ilike.

Source
reference

The reference text. This may include template strings.

Source
reference=(reference : String)

The reference text. This may include template strings.

Source
type_value

The object type, which is always string_check.

Source
type_value=(type_value : GraderStringCheckType)

The object type, which is always string_check.

Source