Class BetaManagedAgentsWebSearchToolConfigParams
-
- All Implemented Interfaces:
public final class BetaManagedAgentsWebSearchToolConfigParamsConfiguration override for the web_search tool.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsWebSearchToolConfigParams.BuilderA builder for BetaManagedAgentsWebSearchToolConfigParams.
public final classBetaManagedAgentsWebSearchToolConfigParams.PermissionPolicyPermission policy for this tool. Controls whether tool calls are auto-approved or require confirmation.
public final classBetaManagedAgentsWebSearchToolConfigParams.Type
-
Method Summary
Modifier and Type Method Description final Optional<List<String>>allowedDomains()Only return search results whose host is one of these domains or a subdomain of one. final Optional<List<String>>blockedDomains()Never return search results whose host is one of these domains or a subdomain of one. final Optional<Boolean>enabled()Whether this tool is enabled and available to Claude. final Optional<BetaManagedAgentsWebSearchToolConfigParams.PermissionPolicy>permissionPolicy()Permission policy for this tool. final Optional<BetaManagedAgentsWebSearchToolConfigParams.Type>type()final Optional<BetaManagedAgentsUserLocation>userLocation()Approximate user location for search result localization. final JsonValue_name()Must be "web_search". final JsonField<List<String>>_allowedDomains()Returns the raw JSON value of allowedDomains. final JsonField<List<String>>_blockedDomains()Returns the raw JSON value of blockedDomains. final JsonField<Boolean>_enabled()Returns the raw JSON value of enabled. final JsonField<BetaManagedAgentsWebSearchToolConfigParams.PermissionPolicy>_permissionPolicy()Returns the raw JSON value of permissionPolicy. final JsonField<BetaManagedAgentsWebSearchToolConfigParams.Type>_type()Returns the raw JSON value of type. final JsonField<BetaManagedAgentsUserLocation>_userLocation()Returns the raw JSON value of userLocation. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsWebSearchToolConfigParams.BuildertoBuilder()final BetaManagedAgentsWebSearchToolConfigParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsWebSearchToolConfigParams.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsWebSearchToolConfigParams. -
-
Method Detail
-
allowedDomains
final Optional<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.
-
blockedDomains
final Optional<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.
-
enabled
final Optional<Boolean> enabled()
Whether this tool is enabled and available to Claude. Overrides the default_config setting.
-
permissionPolicy
final Optional<BetaManagedAgentsWebSearchToolConfigParams.PermissionPolicy> permissionPolicy()
Permission policy for this tool. Controls whether tool calls are auto-approved or require confirmation.
-
type
final Optional<BetaManagedAgentsWebSearchToolConfigParams.Type> type()
-
userLocation
final Optional<BetaManagedAgentsUserLocation> userLocation()
Approximate user location for search result localization.
-
_name
final JsonValue _name()
Must be "web_search".
Expected to always return the following:
JsonValue.from("web_search")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_allowedDomains
final JsonField<List<String>> _allowedDomains()
Returns the raw JSON value of allowedDomains.
Unlike allowedDomains, this method doesn't throw if the JSON field has an unexpected type.
-
_blockedDomains
final JsonField<List<String>> _blockedDomains()
Returns the raw JSON value of blockedDomains.
Unlike blockedDomains, this method doesn't throw if the JSON field has an unexpected type.
-
_enabled
final JsonField<Boolean> _enabled()
Returns the raw JSON value of enabled.
Unlike enabled, this method doesn't throw if the JSON field has an unexpected type.
-
_permissionPolicy
final JsonField<BetaManagedAgentsWebSearchToolConfigParams.PermissionPolicy> _permissionPolicy()
Returns the raw JSON value of permissionPolicy.
Unlike permissionPolicy, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<BetaManagedAgentsWebSearchToolConfigParams.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_userLocation
final JsonField<BetaManagedAgentsUserLocation> _userLocation()
Returns the raw JSON value of userLocation.
Unlike userLocation, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsWebSearchToolConfigParams.Builder toBuilder()
-
validate
final BetaManagedAgentsWebSearchToolConfigParams 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 BetaManagedAgentsWebSearchToolConfigParams.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsWebSearchToolConfigParams.
-
-
-
-