Package com.openai.models.beta.responses
Class BetaResponseFunctionWebSearch.Action.Search.Source
-
- All Implemented Interfaces:
public final class BetaResponseFunctionWebSearch.Action.Search.SourceA source used in the search.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseFunctionWebSearch.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 BetaResponseFunctionWebSearch.Action.Search.Source.BuildertoBuilder()final BetaResponseFunctionWebSearch.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 BetaResponseFunctionWebSearch.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 BetaResponseFunctionWebSearch.Action.Search.Source.Builder toBuilder()
-
validate
final BetaResponseFunctionWebSearch.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 BetaResponseFunctionWebSearch.Action.Search.Source.Builder builder()
Returns a mutable builder for constructing an instance of Source.
The following fields are required:
.url()
-
-
-
-