Class WebFetchUrlSources
-
- All Implemented Interfaces:
public final class WebFetchUrlSourcesWhich 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 classWebFetchUrlSources.BuilderA builder for WebFetchUrlSources.
public final classWebFetchUrlSources.ClientToolResultsWhich client tools' results contribute fetchable URLs: "all", "none", or an only or except list of client tool names from tools[].
public final classWebFetchUrlSources.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 classWebFetchUrlSources.UserInputWhether URLs in user messages are fetchable: "all" or "none".
-
Method Summary
Modifier and Type Method Description final Optional<WebFetchUrlSources.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<WebFetchUrlSources.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<WebFetchUrlSources.UserInput>userInput()Whether URLs in user messages are fetchable: "all" or "none". final JsonField<WebFetchUrlSources.ClientToolResults>_clientToolResults()Returns the raw JSON value of clientToolResults. final JsonField<WebFetchUrlSources.ServerToolResults>_serverToolResults()Returns the raw JSON value of serverToolResults. final JsonField<WebFetchUrlSources.UserInput>_userInput()Returns the raw JSON value of userInput. final Map<String, JsonValue>_additionalProperties()final WebFetchUrlSources.BuildertoBuilder()final WebFetchUrlSourcesvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static WebFetchUrlSources.Builderbuilder()Returns a mutable builder for constructing an instance of WebFetchUrlSources. -
-
Method Detail
-
clientToolResults
final Optional<WebFetchUrlSources.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<WebFetchUrlSources.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<WebFetchUrlSources.UserInput> userInput()
Whether URLs in user messages are fetchable: "all" or "none".
-
_clientToolResults
final JsonField<WebFetchUrlSources.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<WebFetchUrlSources.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<WebFetchUrlSources.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 WebFetchUrlSources.Builder toBuilder()
-
validate
final WebFetchUrlSources 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 WebFetchUrlSources.Builder builder()
Returns a mutable builder for constructing an instance of WebFetchUrlSources.
-
-
-
-