OpenAI::CodeInterpreterTool
Inherits JSON::Serializable < Reference < Object
A tool that runs Python code to help generate a response to a prompt.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : CodeInterpreterToolType = CodeInterpreterToolType::CodeInterpreter, container : CodeInterpreterToolContainer = "")
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
container
The code interpreter container. Can be a container ID or an object that
specifies uploaded file IDs to make available to your code, along with an
optional memory_limit setting.
container=(container : CodeInterpreterToolContainer)
The code interpreter container. Can be a container ID or an object that
specifies uploaded file IDs to make available to your code, along with an
optional memory_limit setting.
type_value=(type_value : CodeInterpreterToolType)
The type of the code interpreter tool. Always code_interpreter.