class

OpenAI::CodeInterpreterTool

Inherits JSON::Serializable < Reference < Object

A tool that runs Python code to help generate a response to a prompt.

Constructors

new(type_value : CodeInterpreterToolType = CodeInterpreterToolType::CodeInterpreter, container : CodeInterpreterToolContainer = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance 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.

Source
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.

Source
type_value

The type of the code interpreter tool. Always code_interpreter.

Source
type_value=(type_value : CodeInterpreterToolType)

The type of the code interpreter tool. Always code_interpreter.

Source