Class BetaWebFetchUrlSources
-
- All Implemented Interfaces:
public final class BetaWebFetchUrlSourcesWhich sources contribute to the set of URLs web fetch may fetch.
Each key is a tagged variant:
`user_input`is`all`or`none`; the two tool filters are`all`,`none`,`only`(only the named tools' results) or`except`(every result but the named tools'). A named tool must be declared in this request's`tools[]`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaWebFetchUrlSources.BuilderA builder for BetaWebFetchUrlSources.
public final classBetaWebFetchUrlSources.ClientToolResultsWhich client tools' results contribute fetchable URLs: "all", "none", or an only or except list of client tool names from tools[].
public final classBetaWebFetchUrlSources.ServerToolResultsWhich server tools' results contribute fetchable URLs: "all", "none", or an only or except list of server tool names from tools[]; only web_search and web_fetch results ever contribute.
public final classBetaWebFetchUrlSources.UserInputWhether URLs in user messages are fetchable: "all" or "none".
-
Method Summary
Modifier and Type Method Description final Optional<BetaWebFetchUrlSources.ClientToolResults>clientToolResults()Which client tools' results contribute fetchable URLs: "all", "none", or an only or except list of client tool names from tools[]. final Optional<BetaWebFetchUrlSources.ServerToolResults>serverToolResults()Which server tools' results contribute fetchable URLs: "all", "none", or an only or except list of server tool names from tools[]; only web_search and web_fetch results ever contribute. final Optional<BetaWebFetchUrlSources.UserInput>userInput()Whether URLs in user messages are fetchable: "all" or "none". final JsonField<BetaWebFetchUrlSources.ClientToolResults>_clientToolResults()Returns the raw JSON value of clientToolResults. final JsonField<BetaWebFetchUrlSources.ServerToolResults>_serverToolResults()Returns the raw JSON value of serverToolResults. final JsonField<BetaWebFetchUrlSources.UserInput>_userInput()Returns the raw JSON value of userInput. final Map<String, JsonValue>_additionalProperties()final BetaWebFetchUrlSources.BuildertoBuilder()final BetaWebFetchUrlSourcesvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaWebFetchUrlSources.Builderbuilder()Returns a mutable builder for constructing an instance of BetaWebFetchUrlSources. -
-
Method Detail
-
clientToolResults
final Optional<BetaWebFetchUrlSources.ClientToolResults> clientToolResults()
Which client tools' results contribute fetchable URLs: "all", "none", or an only or except list of client tool names from tools[].
-
serverToolResults
final Optional<BetaWebFetchUrlSources.ServerToolResults> serverToolResults()
Which server tools' results contribute fetchable URLs: "all", "none", or an only or except list of server tool names from tools[]; only web_search and web_fetch results ever contribute.
-
userInput
final Optional<BetaWebFetchUrlSources.UserInput> userInput()
Whether URLs in user messages are fetchable: "all" or "none".
-
_clientToolResults
final JsonField<BetaWebFetchUrlSources.ClientToolResults> _clientToolResults()
Returns the raw JSON value of clientToolResults.
Unlike clientToolResults, this method doesn't throw if the JSON field has an unexpected type.
-
_serverToolResults
final JsonField<BetaWebFetchUrlSources.ServerToolResults> _serverToolResults()
Returns the raw JSON value of serverToolResults.
Unlike serverToolResults, this method doesn't throw if the JSON field has an unexpected type.
-
_userInput
final JsonField<BetaWebFetchUrlSources.UserInput> _userInput()
Returns the raw JSON value of userInput.
Unlike userInput, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaWebFetchUrlSources.Builder toBuilder()
-
validate
final BetaWebFetchUrlSources 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 BetaWebFetchUrlSources.Builder builder()
Returns a mutable builder for constructing an instance of BetaWebFetchUrlSources.
-
-
-
-