Class BetaManagedAgentsWebFetchToolConfig.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsWebFetchToolConfig.BuilderA builder for BetaManagedAgentsWebFetchToolConfig.
-
-
Method Summary
-
-
Method Detail
-
enabled
final BetaManagedAgentsWebFetchToolConfig.Builder enabled(Boolean enabled)
-
enabled
final BetaManagedAgentsWebFetchToolConfig.Builder enabled(JsonField<Boolean> enabled)
Sets Builder.enabled to an arbitrary JSON value.
You should usually call Builder.enabled with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final BetaManagedAgentsWebFetchToolConfig.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.
-
permissionPolicy
final BetaManagedAgentsWebFetchToolConfig.Builder permissionPolicy(BetaManagedAgentsWebFetchToolConfig.PermissionPolicy permissionPolicy)
Permission policy for tool execution.
-
permissionPolicy
final BetaManagedAgentsWebFetchToolConfig.Builder permissionPolicy(JsonField<BetaManagedAgentsWebFetchToolConfig.PermissionPolicy> permissionPolicy)
Sets Builder.permissionPolicy to an arbitrary JSON value.
You should usually call Builder.permissionPolicy with a well-typed PermissionPolicy value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
permissionPolicy
final BetaManagedAgentsWebFetchToolConfig.Builder permissionPolicy(BetaManagedAgentsAlwaysAllowPolicy alwaysAllow)
Alias for calling permissionPolicy with
PermissionPolicy.ofAlwaysAllow(alwaysAllow).
-
permissionPolicy
final BetaManagedAgentsWebFetchToolConfig.Builder permissionPolicy(BetaManagedAgentsAlwaysAskPolicy alwaysAsk)
Alias for calling permissionPolicy with
PermissionPolicy.ofAlwaysAsk(alwaysAsk).
-
permissionPolicy
final BetaManagedAgentsWebFetchToolConfig.Builder permissionPolicy(BetaManagedAgentsAutoPolicy auto)
Alias for calling permissionPolicy with
PermissionPolicy.ofAuto(auto).
-
type
final BetaManagedAgentsWebFetchToolConfig.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")This method is primarily for setting the field to an undocumented or not yet supported value.
-
urlSources
final BetaManagedAgentsWebFetchToolConfig.Builder urlSources(BetaManagedAgentsWebFetchUrlSources urlSources)
Which sources contribute URLs the tool may fetch, always in the object form. Null when not set, which allows every source.
-
urlSources
final BetaManagedAgentsWebFetchToolConfig.Builder urlSources(Optional<BetaManagedAgentsWebFetchUrlSources> urlSources)
Alias for calling Builder.urlSources with
urlSources.orElse(null).
-
urlSources
final BetaManagedAgentsWebFetchToolConfig.Builder urlSources(JsonField<BetaManagedAgentsWebFetchUrlSources> urlSources)
Sets Builder.urlSources to an arbitrary JSON value.
You should usually call Builder.urlSources with a well-typed BetaManagedAgentsWebFetchUrlSources value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
allowedDomains
final BetaManagedAgentsWebFetchToolConfig.Builder allowedDomains(List<String> allowedDomains)
-
allowedDomains
final BetaManagedAgentsWebFetchToolConfig.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.
-
blockedDomains
final BetaManagedAgentsWebFetchToolConfig.Builder blockedDomains(List<String> blockedDomains)
-
blockedDomains
final BetaManagedAgentsWebFetchToolConfig.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.
-
maxContentTokens
final BetaManagedAgentsWebFetchToolConfig.Builder maxContentTokens(Integer maxContentTokens)
-
maxContentTokens
final BetaManagedAgentsWebFetchToolConfig.Builder maxContentTokens(Integer maxContentTokens)
Alias for Builder.maxContentTokens.
This unboxed primitive overload exists for backwards compatibility.
-
maxContentTokens
final BetaManagedAgentsWebFetchToolConfig.Builder maxContentTokens(Optional<Integer> maxContentTokens)
Alias for calling Builder.maxContentTokens with
maxContentTokens.orElse(null).
-
maxContentTokens
final BetaManagedAgentsWebFetchToolConfig.Builder maxContentTokens(JsonField<Integer> maxContentTokens)
Sets Builder.maxContentTokens to an arbitrary JSON value.
You should usually call Builder.maxContentTokens with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsWebFetchToolConfig.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addAllowedDomain
final BetaManagedAgentsWebFetchToolConfig.Builder addAllowedDomain(String allowedDomain)
Adds a single String to allowedDomains.
-
addBlockedDomain
final BetaManagedAgentsWebFetchToolConfig.Builder addBlockedDomain(String blockedDomain)
Adds a single String to blockedDomains.
-
putAdditionalProperty
final BetaManagedAgentsWebFetchToolConfig.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsWebFetchToolConfig.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsWebFetchToolConfig.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsWebFetchToolConfig.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsWebFetchToolConfig build()
Returns an immutable instance of BetaManagedAgentsWebFetchToolConfig.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.enabled() .permissionPolicy() .urlSources()
-
-
-
-