Class BetaWebFetchTool20260309.Builder
-
- All Implemented Interfaces:
public final class BetaWebFetchTool20260309.BuilderA builder for BetaWebFetchTool20260309.
-
-
Method Summary
-
-
Method Detail
-
name
final BetaWebFetchTool20260309.Builder name(JsonValue name)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("web_fetch")This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaWebFetchTool20260309.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("web_fetch_20260309")This method is primarily for setting the field to an undocumented or not yet supported value.
-
allowedCallers
final BetaWebFetchTool20260309.Builder allowedCallers(List<BetaWebFetchTool20260309.AllowedCaller> allowedCallers)
-
allowedCallers
final BetaWebFetchTool20260309.Builder allowedCallers(JsonField<List<BetaWebFetchTool20260309.AllowedCaller>> allowedCallers)
Sets Builder.allowedCallers to an arbitrary JSON value.
You should usually call Builder.allowedCallers with a well-typed
List<AllowedCaller>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addAllowedCaller
final BetaWebFetchTool20260309.Builder addAllowedCaller(BetaWebFetchTool20260309.AllowedCaller allowedCaller)
Adds a single AllowedCaller to allowedCallers.
-
allowedDomains
final BetaWebFetchTool20260309.Builder allowedDomains(List<String> allowedDomains)
List of domains to allow fetching from
-
allowedDomains
final BetaWebFetchTool20260309.Builder allowedDomains(Optional<List<String>> allowedDomains)
Alias for calling Builder.allowedDomains with
allowedDomains.orElse(null).
-
allowedDomains
final BetaWebFetchTool20260309.Builder allowedDomains(JsonField<List<String>> allowedDomains)
Sets Builder.allowedDomains to an arbitrary JSON value.
You should usually call Builder.allowedDomains with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addAllowedDomain
final BetaWebFetchTool20260309.Builder addAllowedDomain(String allowedDomain)
Adds a single String to allowedDomains.
-
blockedDomains
final BetaWebFetchTool20260309.Builder blockedDomains(List<String> blockedDomains)
List of domains to block fetching from
-
blockedDomains
final BetaWebFetchTool20260309.Builder blockedDomains(Optional<List<String>> blockedDomains)
Alias for calling Builder.blockedDomains with
blockedDomains.orElse(null).
-
blockedDomains
final BetaWebFetchTool20260309.Builder blockedDomains(JsonField<List<String>> blockedDomains)
Sets Builder.blockedDomains to an arbitrary JSON value.
You should usually call Builder.blockedDomains with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addBlockedDomain
final BetaWebFetchTool20260309.Builder addBlockedDomain(String blockedDomain)
Adds a single String to blockedDomains.
-
cacheControl
final BetaWebFetchTool20260309.Builder cacheControl(BetaCacheControlEphemeral cacheControl)
Create a cache control breakpoint at this content block.
-
cacheControl
final BetaWebFetchTool20260309.Builder cacheControl(Optional<BetaCacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final BetaWebFetchTool20260309.Builder cacheControl(JsonField<BetaCacheControlEphemeral> cacheControl)
Sets Builder.cacheControl to an arbitrary JSON value.
You should usually call Builder.cacheControl with a well-typed BetaCacheControlEphemeral value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
citations
final BetaWebFetchTool20260309.Builder citations(BetaCitationsConfigParam citations)
Citations configuration for fetched documents. Citations are disabled by default.
-
citations
final BetaWebFetchTool20260309.Builder citations(Optional<BetaCitationsConfigParam> citations)
Alias for calling Builder.citations with
citations.orElse(null).
-
citations
final BetaWebFetchTool20260309.Builder citations(JsonField<BetaCitationsConfigParam> citations)
Sets Builder.citations to an arbitrary JSON value.
You should usually call Builder.citations with a well-typed BetaCitationsConfigParam value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
deferLoading
final BetaWebFetchTool20260309.Builder deferLoading(Boolean deferLoading)
If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
-
deferLoading
final BetaWebFetchTool20260309.Builder deferLoading(JsonField<Boolean> deferLoading)
Sets Builder.deferLoading to an arbitrary JSON value.
You should usually call Builder.deferLoading with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxContentTokens
final BetaWebFetchTool20260309.Builder maxContentTokens(Long maxContentTokens)
Maximum number of tokens used by including web page text content in the context. The limit is approximate and does not apply to binary content such as PDFs.
-
maxContentTokens
final BetaWebFetchTool20260309.Builder maxContentTokens(Long maxContentTokens)
Alias for Builder.maxContentTokens.
This unboxed primitive overload exists for backwards compatibility.
-
maxContentTokens
final BetaWebFetchTool20260309.Builder maxContentTokens(Optional<Long> maxContentTokens)
Alias for calling Builder.maxContentTokens with
maxContentTokens.orElse(null).
-
maxContentTokens
final BetaWebFetchTool20260309.Builder maxContentTokens(JsonField<Long> maxContentTokens)
Sets Builder.maxContentTokens to an arbitrary JSON value.
You should usually call Builder.maxContentTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxUses
final BetaWebFetchTool20260309.Builder maxUses(Long maxUses)
Maximum number of times the tool can be used in the API request.
-
maxUses
final BetaWebFetchTool20260309.Builder maxUses(Long maxUses)
Alias for Builder.maxUses.
This unboxed primitive overload exists for backwards compatibility.
-
maxUses
final BetaWebFetchTool20260309.Builder maxUses(Optional<Long> maxUses)
Alias for calling Builder.maxUses with
maxUses.orElse(null).
-
maxUses
final BetaWebFetchTool20260309.Builder maxUses(JsonField<Long> maxUses)
Sets Builder.maxUses to an arbitrary JSON value.
You should usually call Builder.maxUses with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
strict
final BetaWebFetchTool20260309.Builder strict(Boolean strict)
When true, guarantees schema validation on tool names and inputs
-
strict
final BetaWebFetchTool20260309.Builder strict(JsonField<Boolean> strict)
Sets Builder.strict to an arbitrary JSON value.
You should usually call Builder.strict with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
useCache
final BetaWebFetchTool20260309.Builder useCache(Boolean useCache)
Whether to use cached content. Set to false to bypass the cache and fetch fresh content. Only set to false when the user explicitly requests fresh content or when fetching rapidly-changing sources.
-
useCache
final BetaWebFetchTool20260309.Builder useCache(JsonField<Boolean> useCache)
Sets Builder.useCache to an arbitrary JSON value.
You should usually call Builder.useCache with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaWebFetchTool20260309.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaWebFetchTool20260309.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaWebFetchTool20260309.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaWebFetchTool20260309.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaWebFetchTool20260309.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaWebFetchTool20260309 build()
Returns an immutable instance of BetaWebFetchTool20260309.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-