Class Tool.CodeInterpreter.Builder
-
- All Implemented Interfaces:
public final class Tool.CodeInterpreter.Builder
A builder for CodeInterpreter.
-
-
Method Summary
-
-
Method Detail
-
container
final Tool.CodeInterpreter.Builder container(Tool.CodeInterpreter.Container container)
The code interpreter container. Can be a container ID or an object that specifies uploaded file IDs to make available to your code.
-
container
final Tool.CodeInterpreter.Builder container(JsonField<Tool.CodeInterpreter.Container> container)
Sets Builder.container to an arbitrary JSON value.
You should usually call Builder.container with a well-typed Container value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
container
final Tool.CodeInterpreter.Builder container(String string)
Alias for calling container with
Container.ofString(string)
.
-
container
final Tool.CodeInterpreter.Builder container(Tool.CodeInterpreter.Container.CodeInterpreterToolAuto codeInterpreterToolAuto)
Alias for calling container with
Container.ofCodeInterpreterToolAuto(codeInterpreterToolAuto)
.
-
type
final Tool.CodeInterpreter.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("code_interpreter")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Tool.CodeInterpreter.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Tool.CodeInterpreter.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Tool.CodeInterpreter.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Tool.CodeInterpreter.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Tool.CodeInterpreter.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final Tool.CodeInterpreter build()
Returns an immutable instance of CodeInterpreter.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.container()
-
-
-
-