Package com.openai.models.responses
Class Tool.CodeInterpreter.Container
-
- All Implemented Interfaces:
public final class Tool.CodeInterpreter.Container
The code interpreter container. Can be a container ID or an object that specifies uploaded file IDs to make available to your code.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
Tool.CodeInterpreter.Container.Visitor
An interface that defines how to map each variant of Container to a value of type T.
public final class
Tool.CodeInterpreter.Container.CodeInterpreterToolAuto
Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.
-
Method Summary
-
-
Method Detail
-
codeInterpreterToolAuto
final Optional<Tool.CodeInterpreter.Container.CodeInterpreterToolAuto> codeInterpreterToolAuto()
Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.
-
isCodeInterpreterToolAuto
final Boolean isCodeInterpreterToolAuto()
-
asCodeInterpreterToolAuto
final Tool.CodeInterpreter.Container.CodeInterpreterToolAuto asCodeInterpreterToolAuto()
Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.
-
accept
final <T extends Any> T accept(Tool.CodeInterpreter.Container.Visitor<T> visitor)
-
validate
final Tool.CodeInterpreter.Container validate()
-
ofString
final static Tool.CodeInterpreter.Container ofString(String string)
The container ID.
-
ofCodeInterpreterToolAuto
final static Tool.CodeInterpreter.Container ofCodeInterpreterToolAuto(Tool.CodeInterpreter.Container.CodeInterpreterToolAuto codeInterpreterToolAuto)
Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.
-
-
-
-