Class BetaManagedAgentsWebSearchToolConfigParams.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsWebSearchToolConfigParams.BuilderA builder for BetaManagedAgentsWebSearchToolConfigParams.
-
-
Method Summary
-
-
Method Detail
-
name
final BetaManagedAgentsWebSearchToolConfigParams.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_search")This method is primarily for setting the field to an undocumented or not yet supported value.
-
allowedDomains
final BetaManagedAgentsWebSearchToolConfigParams.Builder allowedDomains(List<String> allowedDomains)
Only return search results whose host is one of these domains or a subdomain of one. Each entry is a plain hostname like "docs.example.com" (no scheme or port; an optional path suffix is accepted). At most 64 entries; an empty list is rejected (omit the field instead). Cannot be combined with blocked_domains.
-
allowedDomains
final BetaManagedAgentsWebSearchToolConfigParams.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 BetaManagedAgentsWebSearchToolConfigParams.Builder blockedDomains(List<String> blockedDomains)
Never return search results whose host is one of these domains or a subdomain of one. Each entry is a plain hostname like "ads.example.com" (no scheme or port; an optional path suffix is accepted). At most 64 entries; an empty list is rejected (omit the field instead). Cannot be combined with allowed_domains.
-
blockedDomains
final BetaManagedAgentsWebSearchToolConfigParams.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.
-
enabled
final BetaManagedAgentsWebSearchToolConfigParams.Builder enabled(Boolean enabled)
Whether this tool is enabled and available to Claude. Overrides the default_config setting.
-
enabled
final BetaManagedAgentsWebSearchToolConfigParams.Builder enabled(Boolean enabled)
Alias for Builder.enabled.
This unboxed primitive overload exists for backwards compatibility.
-
enabled
final BetaManagedAgentsWebSearchToolConfigParams.Builder enabled(Optional<Boolean> enabled)
Alias for calling Builder.enabled with
enabled.orElse(null).
-
enabled
final BetaManagedAgentsWebSearchToolConfigParams.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.
-
permissionPolicy
final BetaManagedAgentsWebSearchToolConfigParams.Builder permissionPolicy(BetaManagedAgentsWebSearchToolConfigParams.PermissionPolicy permissionPolicy)
Permission policy for this tool. Controls whether tool calls are auto-approved or require confirmation.
-
permissionPolicy
final BetaManagedAgentsWebSearchToolConfigParams.Builder permissionPolicy(Optional<BetaManagedAgentsWebSearchToolConfigParams.PermissionPolicy> permissionPolicy)
Alias for calling Builder.permissionPolicy with
permissionPolicy.orElse(null).
-
permissionPolicy
final BetaManagedAgentsWebSearchToolConfigParams.Builder permissionPolicy(JsonField<BetaManagedAgentsWebSearchToolConfigParams.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 BetaManagedAgentsWebSearchToolConfigParams.Builder permissionPolicy(BetaManagedAgentsAlwaysAllowPolicy alwaysAllow)
Alias for calling permissionPolicy with
PermissionPolicy.ofAlwaysAllow(alwaysAllow).
-
permissionPolicy
final BetaManagedAgentsWebSearchToolConfigParams.Builder permissionPolicy(BetaManagedAgentsAlwaysAskPolicy alwaysAsk)
Alias for calling permissionPolicy with
PermissionPolicy.ofAlwaysAsk(alwaysAsk).
-
permissionPolicy
final BetaManagedAgentsWebSearchToolConfigParams.Builder permissionPolicy(BetaManagedAgentsAutoPolicy auto)
Alias for calling permissionPolicy with
PermissionPolicy.ofAuto(auto).
-
type
final BetaManagedAgentsWebSearchToolConfigParams.Builder type(BetaManagedAgentsWebSearchToolConfigParams.Type type)
-
type
final BetaManagedAgentsWebSearchToolConfigParams.Builder type(JsonField<BetaManagedAgentsWebSearchToolConfigParams.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
userLocation
final BetaManagedAgentsWebSearchToolConfigParams.Builder userLocation(BetaManagedAgentsUserLocation userLocation)
Approximate user location for search result localization.
-
userLocation
final BetaManagedAgentsWebSearchToolConfigParams.Builder userLocation(Optional<BetaManagedAgentsUserLocation> userLocation)
Alias for calling Builder.userLocation with
userLocation.orElse(null).
-
userLocation
final BetaManagedAgentsWebSearchToolConfigParams.Builder userLocation(JsonField<BetaManagedAgentsUserLocation> userLocation)
Sets Builder.userLocation to an arbitrary JSON value.
You should usually call Builder.userLocation with a well-typed BetaManagedAgentsUserLocation value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsWebSearchToolConfigParams.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addAllowedDomain
final BetaManagedAgentsWebSearchToolConfigParams.Builder addAllowedDomain(String allowedDomain)
Adds a single String to allowedDomains.
-
addBlockedDomain
final BetaManagedAgentsWebSearchToolConfigParams.Builder addBlockedDomain(String blockedDomain)
Adds a single String to blockedDomains.
-
putAdditionalProperty
final BetaManagedAgentsWebSearchToolConfigParams.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsWebSearchToolConfigParams.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsWebSearchToolConfigParams.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsWebSearchToolConfigParams.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsWebSearchToolConfigParams build()
Returns an immutable instance of BetaManagedAgentsWebSearchToolConfigParams.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-