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(pull : JSON::PullParser)
Sourcenew(type_value : GraderStringCheckType = GraderStringCheckType::StringCheck, name : String = "", input : String = "", reference : String = "", operation : GraderStringCheckOperation = GraderStringCheckOperation::Eq)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
operation=(operation : GraderStringCheckOperation)
The string check operation to perform. One of eq, ne, like, or ilike.
type_value=(type_value : GraderStringCheckType)
The object type, which is always string_check.