struct
AI::OpenAI::Tools::CodeInterpreter
- AI::OpenAI::Tools::CodeInterpreter
- Struct
- Value
- Object
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.crConstant Summary
-
ID =
"openai.code_interpreter" -
NAME =
"code_interpreter"
Constructors
Instance Method Summary
- #args : Hash(String, JSON::Any)
-
#container : String | ContainerConfig | Nil
The container to use for the code interpreter.
- #id : String
- #name : String
- #type : String
Constructor Detail
Instance Method Detail
def container : String | ContainerConfig | Nil
#
The container to use for the code interpreter. Can be a container ID or file configuration.