Class WebFetchUrlSources.Builder
-
- All Implemented Interfaces:
public final class WebFetchUrlSources.BuilderA builder for WebFetchUrlSources.
-
-
Method Summary
-
-
Method Detail
-
clientToolResults
final WebFetchUrlSources.Builder clientToolResults(WebFetchUrlSources.ClientToolResults clientToolResults)
Which client tools' results contribute fetchable URLs: "all", "none", or an only or except list of client tool names from tools[].
-
clientToolResults
final WebFetchUrlSources.Builder clientToolResults(JsonField<WebFetchUrlSources.ClientToolResults> clientToolResults)
Sets Builder.clientToolResults to an arbitrary JSON value.
You should usually call Builder.clientToolResults with a well-typed ClientToolResults value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
clientToolResults
final WebFetchUrlSources.Builder clientToolResults(WebFetchUrlSourceAll all)
Alias for calling clientToolResults with
ClientToolResults.ofAll(all).
-
clientToolResults
final WebFetchUrlSources.Builder clientToolResults(WebFetchUrlSourceNone none)
Alias for calling clientToolResults with
ClientToolResults.ofNone(none).
-
clientToolResults
final WebFetchUrlSources.Builder clientToolResults(WebFetchUrlSourceOnly only)
Alias for calling clientToolResults with
ClientToolResults.ofOnly(only).
-
clientToolResults
final WebFetchUrlSources.Builder clientToolResults(WebFetchUrlSourceExcept except)
Alias for calling clientToolResults with
ClientToolResults.ofExcept(except).
-
serverToolResults
final WebFetchUrlSources.Builder serverToolResults(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.
-
serverToolResults
final WebFetchUrlSources.Builder serverToolResults(JsonField<WebFetchUrlSources.ServerToolResults> serverToolResults)
Sets Builder.serverToolResults to an arbitrary JSON value.
You should usually call Builder.serverToolResults with a well-typed ServerToolResults value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
serverToolResults
final WebFetchUrlSources.Builder serverToolResults(WebFetchUrlSourceAll all)
Alias for calling serverToolResults with
ServerToolResults.ofAll(all).
-
serverToolResults
final WebFetchUrlSources.Builder serverToolResults(WebFetchUrlSourceNone none)
Alias for calling serverToolResults with
ServerToolResults.ofNone(none).
-
serverToolResults
final WebFetchUrlSources.Builder serverToolResults(WebFetchUrlSourceOnly only)
Alias for calling serverToolResults with
ServerToolResults.ofOnly(only).
-
serverToolResults
final WebFetchUrlSources.Builder serverToolResults(WebFetchUrlSourceExcept except)
Alias for calling serverToolResults with
ServerToolResults.ofExcept(except).
-
userInput
final WebFetchUrlSources.Builder userInput(WebFetchUrlSources.UserInput userInput)
Whether URLs in user messages are fetchable: "all" or "none".
-
userInput
final WebFetchUrlSources.Builder userInput(JsonField<WebFetchUrlSources.UserInput> userInput)
Sets Builder.userInput to an arbitrary JSON value.
You should usually call Builder.userInput with a well-typed UserInput value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
userInput
final WebFetchUrlSources.Builder userInput(WebFetchUrlSourceAll all)
Alias for calling userInput with
UserInput.ofAll(all).
-
userInput
final WebFetchUrlSources.Builder userInput(WebFetchUrlSourceNone none)
Alias for calling userInput with
UserInput.ofNone(none).
-
additionalProperties
final WebFetchUrlSources.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
onlyClientToolResults
final WebFetchUrlSources.Builder onlyClientToolResults(List<WebFetchUrlSourceToolReference> tools)
Alias for calling clientToolResults with the following:
WebFetchUrlSourceOnly.builder() .tools(tools) .build()
-
exceptClientToolResults
final WebFetchUrlSources.Builder exceptClientToolResults(List<WebFetchUrlSourceToolReference> tools)
Alias for calling clientToolResults with the following:
WebFetchUrlSourceExcept.builder() .tools(tools) .build()
-
onlyServerToolResults
final WebFetchUrlSources.Builder onlyServerToolResults(List<WebFetchUrlSourceToolReference> tools)
Alias for calling serverToolResults with the following:
WebFetchUrlSourceOnly.builder() .tools(tools) .build()
-
exceptServerToolResults
final WebFetchUrlSources.Builder exceptServerToolResults(List<WebFetchUrlSourceToolReference> tools)
Alias for calling serverToolResults with the following:
WebFetchUrlSourceExcept.builder() .tools(tools) .build()
-
putAdditionalProperty
final WebFetchUrlSources.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final WebFetchUrlSources.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final WebFetchUrlSources.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final WebFetchUrlSources.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final WebFetchUrlSources build()
Returns an immutable instance of WebFetchUrlSources.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-