Package com.openai.models.responses
Class ResponseFunctionWebSearch.Action.Search.Source
-
- All Implemented Interfaces:
public final class ResponseFunctionWebSearch.Action.Search.SourceA source used in the search.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseFunctionWebSearch.Action.Search.Source.BuilderA builder for Source.
-
Method Summary
Modifier and Type Method Description final JsonValue_type()The type of source. final Stringurl()The URL of the source. final JsonField<String>_url()Returns the raw JSON value of url. final Map<String, JsonValue>_additionalProperties()final ResponseFunctionWebSearch.Action.Search.Source.BuildertoBuilder()final ResponseFunctionWebSearch.Action.Search.Sourcevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseFunctionWebSearch.Action.Search.Source.Builderbuilder()Returns a mutable builder for constructing an instance of Source. -
-
Method Detail
-
_type
final JsonValue _type()
The type of source. Always
url.Expected to always return the following:
JsonValue.from("url")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_url
final JsonField<String> _url()
Returns the raw JSON value of url.
Unlike url, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseFunctionWebSearch.Action.Search.Source.Builder toBuilder()
-
validate
final ResponseFunctionWebSearch.Action.Search.Source validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ResponseFunctionWebSearch.Action.Search.Source.Builder builder()
Returns a mutable builder for constructing an instance of Source.
The following fields are required:
.url()
-
-
-
-