Class ChatCompletionCreateParams.WebSearchOptions.UserLocation
-
- All Implemented Interfaces:
public final class ChatCompletionCreateParams.WebSearchOptions.UserLocation
Approximate location parameters for the search.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatCompletionCreateParams.WebSearchOptions.UserLocation.Builder
A builder for UserLocation.
public final class
ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate
Approximate location parameters for the search.
-
Method Summary
Modifier and Type Method Description final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate
approximate()
Approximate location parameters for the search. final JsonValue
_type()
The type of location approximation. final JsonField<ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate>
_approximate()
Returns the raw JSON value of approximate. final Map<String, JsonValue>
_additionalProperties()
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Builder
toBuilder()
final ChatCompletionCreateParams.WebSearchOptions.UserLocation
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatCompletionCreateParams.WebSearchOptions.UserLocation.Builder
builder()
Returns a mutable builder for constructing an instance of UserLocation. -
-
Method Detail
-
approximate
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate approximate()
Approximate location parameters for the search.
-
_type
final JsonValue _type()
The type of location approximation. Always
approximate
.Expected to always return the following:
JsonValue.from("approximate")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_approximate
final JsonField<ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate> _approximate()
Returns the raw JSON value of approximate.
Unlike approximate, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Builder toBuilder()
-
validate
final ChatCompletionCreateParams.WebSearchOptions.UserLocation validate()
-
builder
final static ChatCompletionCreateParams.WebSearchOptions.UserLocation.Builder builder()
Returns a mutable builder for constructing an instance of UserLocation.
The following fields are required:
.approximate()
-
-
-
-