Class BetaWebSearchPreviewTool.Builder
-
- All Implemented Interfaces:
public final class BetaWebSearchPreviewTool.BuilderA builder for BetaWebSearchPreviewTool.
-
-
Method Summary
-
-
Method Detail
-
type
final BetaWebSearchPreviewTool.Builder type(BetaWebSearchPreviewTool.Type type)
The type of the web search tool. One of
web_search_previeworweb_search_preview_2025_03_11.
-
type
final BetaWebSearchPreviewTool.Builder type(JsonField<BetaWebSearchPreviewTool.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.
-
searchContentTypes
final BetaWebSearchPreviewTool.Builder searchContentTypes(List<BetaWebSearchPreviewTool.SearchContentType> searchContentTypes)
-
searchContentTypes
final BetaWebSearchPreviewTool.Builder searchContentTypes(JsonField<List<BetaWebSearchPreviewTool.SearchContentType>> searchContentTypes)
Sets Builder.searchContentTypes to an arbitrary JSON value.
You should usually call Builder.searchContentTypes with a well-typed
List<SearchContentType>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addSearchContentType
final BetaWebSearchPreviewTool.Builder addSearchContentType(BetaWebSearchPreviewTool.SearchContentType searchContentType)
Adds a single SearchContentType to searchContentTypes.
-
searchContextSize
final BetaWebSearchPreviewTool.Builder searchContextSize(BetaWebSearchPreviewTool.SearchContextSize searchContextSize)
High level guidance for the amount of context window space to use for the search. One of
low,medium, orhigh.mediumis the default.
-
searchContextSize
final BetaWebSearchPreviewTool.Builder searchContextSize(JsonField<BetaWebSearchPreviewTool.SearchContextSize> searchContextSize)
Sets Builder.searchContextSize to an arbitrary JSON value.
You should usually call Builder.searchContextSize with a well-typed SearchContextSize value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
userLocation
final BetaWebSearchPreviewTool.Builder userLocation(BetaWebSearchPreviewTool.UserLocation userLocation)
The user's location.
-
userLocation
final BetaWebSearchPreviewTool.Builder userLocation(Optional<BetaWebSearchPreviewTool.UserLocation> userLocation)
Alias for calling Builder.userLocation with
userLocation.orElse(null).
-
userLocation
final BetaWebSearchPreviewTool.Builder userLocation(JsonField<BetaWebSearchPreviewTool.UserLocation> userLocation)
Sets Builder.userLocation to an arbitrary JSON value.
You should usually call Builder.userLocation with a well-typed UserLocation value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaWebSearchPreviewTool.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaWebSearchPreviewTool.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaWebSearchPreviewTool.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaWebSearchPreviewTool.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaWebSearchPreviewTool.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaWebSearchPreviewTool build()
Returns an immutable instance of BetaWebSearchPreviewTool.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.type()
-
-
-
-