class

OpenAI::GraderPython

Inherits JSON::Serializable < Reference < Object

A PythonGrader object that runs a python script on the input.

Constructors

new(type_value : GraderPythonType = GraderPythonType::Python, name : String = "", source : String = "", image_tag : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

image_tag

The image tag to use for the python script.

Source
image_tag=(image_tag : String | Nil)

The image tag to use for the python script.

Source
name

The name of the grader.

Source
name=(name : String)

The name of the grader.

Source
source

The source code of the python script.

Source
source=(source : String)

The source code of the python script.

Source
type_value

The object type, which is always python.

Source
type_value=(type_value : GraderPythonType)

The object type, which is always python.

Source