struct

AI::OpenAI::Tools::CodeInterpreter

Inherits Struct < Value < Object

Code Interpreter tool.

Allows models to write and run Python code in a sandboxed environment to solve complex problems in domains like data analysis, coding, and math.

Constants

ID = "openai.code_interpreter"
NAME = "code_interpreter"

Constructors

new(container : String | ContainerConfig | Nil = nil)
Source

Instance methods

args
Source
container

The container to use for the code interpreter. Can be a container ID or file configuration.

Source
name
Source
type
Source