Class BetaManagedAgentsWebSearchToolConfig.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsWebSearchToolConfig.BuilderA builder for BetaManagedAgentsWebSearchToolConfig.
-
-
Method Summary
-
-
Method Detail
-
enabled
final BetaManagedAgentsWebSearchToolConfig.Builder enabled(Boolean enabled)
-
enabled
final BetaManagedAgentsWebSearchToolConfig.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 BetaManagedAgentsWebSearchToolConfig.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.
-
permissionPolicy
final BetaManagedAgentsWebSearchToolConfig.Builder permissionPolicy(BetaManagedAgentsWebSearchToolConfig.PermissionPolicy permissionPolicy)
Permission policy for tool execution.
-
permissionPolicy
final BetaManagedAgentsWebSearchToolConfig.Builder permissionPolicy(JsonField<BetaManagedAgentsWebSearchToolConfig.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 BetaManagedAgentsWebSearchToolConfig.Builder permissionPolicy(BetaManagedAgentsAlwaysAllowPolicy alwaysAllow)
Alias for calling permissionPolicy with
PermissionPolicy.ofAlwaysAllow(alwaysAllow).
-
permissionPolicy
final BetaManagedAgentsWebSearchToolConfig.Builder permissionPolicy(BetaManagedAgentsAlwaysAskPolicy alwaysAsk)
Alias for calling permissionPolicy with
PermissionPolicy.ofAlwaysAsk(alwaysAsk).
-
permissionPolicy
final BetaManagedAgentsWebSearchToolConfig.Builder permissionPolicy(BetaManagedAgentsAutoPolicy auto)
Alias for calling permissionPolicy with
PermissionPolicy.ofAuto(auto).
-
type
final BetaManagedAgentsWebSearchToolConfig.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_search")This method is primarily for setting the field to an undocumented or not yet supported value.
-
allowedDomains
final BetaManagedAgentsWebSearchToolConfig.Builder allowedDomains(List<String> allowedDomains)
-
allowedDomains
final BetaManagedAgentsWebSearchToolConfig.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 BetaManagedAgentsWebSearchToolConfig.Builder blockedDomains(List<String> blockedDomains)
-
blockedDomains
final BetaManagedAgentsWebSearchToolConfig.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.
-
userLocation
final BetaManagedAgentsWebSearchToolConfig.Builder userLocation(BetaManagedAgentsUserLocation userLocation)
Approximate user location for search result localization.
-
userLocation
final BetaManagedAgentsWebSearchToolConfig.Builder userLocation(Optional<BetaManagedAgentsUserLocation> userLocation)
Alias for calling Builder.userLocation with
userLocation.orElse(null).
-
userLocation
final BetaManagedAgentsWebSearchToolConfig.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 BetaManagedAgentsWebSearchToolConfig.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addAllowedDomain
final BetaManagedAgentsWebSearchToolConfig.Builder addAllowedDomain(String allowedDomain)
Adds a single String to allowedDomains.
-
addBlockedDomain
final BetaManagedAgentsWebSearchToolConfig.Builder addBlockedDomain(String blockedDomain)
Adds a single String to blockedDomains.
-
putAdditionalProperty
final BetaManagedAgentsWebSearchToolConfig.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsWebSearchToolConfig.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsWebSearchToolConfig.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsWebSearchToolConfig.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsWebSearchToolConfig build()
Returns an immutable instance of BetaManagedAgentsWebSearchToolConfig.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.enabled() .permissionPolicy()
-
-
-
-