Class BetaManagedAgentsWebSearchToolConfig
-
- All Implemented Interfaces:
public final class BetaManagedAgentsWebSearchToolConfigConfiguration for the web_search tool.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsWebSearchToolConfig.BuilderA builder for BetaManagedAgentsWebSearchToolConfig.
public final classBetaManagedAgentsWebSearchToolConfig.PermissionPolicyPermission policy for tool execution.
-
Method Summary
Modifier and Type Method Description final Booleanenabled()final BetaManagedAgentsWebSearchToolConfig.PermissionPolicypermissionPolicy()Permission policy for tool execution. final Optional<List<String>>allowedDomains()final Optional<List<String>>blockedDomains()final Optional<BetaManagedAgentsUserLocation>userLocation()Approximate user location for search result localization. final JsonValue_name()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("web_search")final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("web_search")final JsonField<Boolean>_enabled()Returns the raw JSON value of enabled. final JsonField<BetaManagedAgentsWebSearchToolConfig.PermissionPolicy>_permissionPolicy()Returns the raw JSON value of permissionPolicy. 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<BetaManagedAgentsUserLocation>_userLocation()Returns the raw JSON value of userLocation. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsWebSearchToolConfig.BuildertoBuilder()final BetaManagedAgentsWebSearchToolConfigvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsWebSearchToolConfig.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsWebSearchToolConfig. -
-
Method Detail
-
permissionPolicy
final BetaManagedAgentsWebSearchToolConfig.PermissionPolicy permissionPolicy()
Permission policy for tool execution.
-
allowedDomains
final Optional<List<String>> allowedDomains()
-
blockedDomains
final Optional<List<String>> blockedDomains()
-
userLocation
final Optional<BetaManagedAgentsUserLocation> userLocation()
Approximate user location for search result localization.
-
_name
final JsonValue _name()
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).
-
_type
final JsonValue _type()
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).
-
_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<BetaManagedAgentsWebSearchToolConfig.PermissionPolicy> _permissionPolicy()
Returns the raw JSON value of permissionPolicy.
Unlike permissionPolicy, this method doesn't throw if the JSON field has an unexpected type.
-
_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.
-
_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 BetaManagedAgentsWebSearchToolConfig.Builder toBuilder()
-
validate
final BetaManagedAgentsWebSearchToolConfig 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 BetaManagedAgentsWebSearchToolConfig.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsWebSearchToolConfig.
The following fields are required:
.enabled() .permissionPolicy()
-
-
-
-