struct AI::OpenAI::Tools::CodeInterpreter

Overview

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.

Defined in:

ai/openai/tool/openai_tools.cr

Constant Summary

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

Constructors

Instance Method Summary

Constructor Detail

def self.new(container : String | ContainerConfig | Nil = nil) #

[View source]

Instance Method Detail

def args : Hash(String, JSON::Any) #

[View source]
def container : String | ContainerConfig | Nil #

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


[View source]
def id : String #

[View source]
def name : String #

[View source]
def type : String #

[View source]