Class ChatCompletionCreateParams.WebSearchOptions.UserLocation.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionCreateParams.WebSearchOptions.UserLocation.Builder
A builder for UserLocation.
-
-
Method Summary
-
-
Method Detail
-
approximate
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Builder approximate(ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate approximate)
Approximate location parameters for the search.
-
approximate
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Builder approximate(JsonField<ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate> approximate)
Sets Builder.approximate to an arbitrary JSON value.
You should usually call Builder.approximate with a well-typed Approximate value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.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("approximate")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionCreateParams.WebSearchOptions.UserLocation build()
Returns an immutable instance of UserLocation.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.approximate()
-
-
-
-