Package com.openai.models.responses
Class ToolChoiceTypes.Builder
-
- All Implemented Interfaces:
public final class ToolChoiceTypes.BuilderA builder for ToolChoiceTypes.
-
-
Method Summary
Modifier and Type Method Description final ToolChoiceTypes.Buildertype(ToolChoiceTypes.Type type)The type of hosted tool the model should to use. final ToolChoiceTypes.Buildertype(JsonField<ToolChoiceTypes.Type> type)Sets Builder.type to an arbitrary JSON value. final ToolChoiceTypes.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ToolChoiceTypes.BuilderputAdditionalProperty(String key, JsonValue value)final ToolChoiceTypes.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ToolChoiceTypes.BuilderremoveAdditionalProperty(String key)final ToolChoiceTypes.BuilderremoveAllAdditionalProperties(Set<String> keys)final ToolChoiceTypesbuild()Returns an immutable instance of ToolChoiceTypes. -
-
Method Detail
-
type
final ToolChoiceTypes.Builder type(ToolChoiceTypes.Type type)
The type of hosted tool the model should to use. Learn more about built-in tools.
Allowed values are:
file_searchweb_search_previewcomputer_use_previewcode_interpreterimage_generation
-
type
final ToolChoiceTypes.Builder type(JsonField<ToolChoiceTypes.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ToolChoiceTypes.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ToolChoiceTypes.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ToolChoiceTypes.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ToolChoiceTypes.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ToolChoiceTypes.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ToolChoiceTypes build()
Returns an immutable instance of ToolChoiceTypes.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.type()
-
-
-
-