Class BetaManagedAgentsWebFetchToolConfig
-
- All Implemented Interfaces:
public final class BetaManagedAgentsWebFetchToolConfigConfiguration for the web_fetch tool.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsWebFetchToolConfig.BuilderA builder for BetaManagedAgentsWebFetchToolConfig.
public final classBetaManagedAgentsWebFetchToolConfig.PermissionPolicyPermission policy for tool execution.
-
Method Summary
Modifier and Type Method Description final Booleanenabled()final BetaManagedAgentsWebFetchToolConfig.PermissionPolicypermissionPolicy()Permission policy for tool execution. final Optional<BetaManagedAgentsWebFetchUrlSources>urlSources()Which sources contribute URLs the tool may fetch, always in the object form. final Optional<List<String>>allowedDomains()final Optional<List<String>>blockedDomains()final Optional<Integer>maxContentTokens()final JsonValue_name()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("web_fetch")final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("web_fetch")final JsonField<Boolean>_enabled()Returns the raw JSON value of enabled. final JsonField<BetaManagedAgentsWebFetchToolConfig.PermissionPolicy>_permissionPolicy()Returns the raw JSON value of permissionPolicy. final JsonField<BetaManagedAgentsWebFetchUrlSources>_urlSources()Returns the raw JSON value of urlSources. 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<Integer>_maxContentTokens()Returns the raw JSON value of maxContentTokens. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsWebFetchToolConfig.BuildertoBuilder()final BetaManagedAgentsWebFetchToolConfigvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsWebFetchToolConfig.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsWebFetchToolConfig. -
-
Method Detail
-
permissionPolicy
final BetaManagedAgentsWebFetchToolConfig.PermissionPolicy permissionPolicy()
Permission policy for tool execution.
-
urlSources
final Optional<BetaManagedAgentsWebFetchUrlSources> urlSources()
Which sources contribute URLs the tool may fetch, always in the object form. Null when not set, which allows every source.
-
allowedDomains
final Optional<List<String>> allowedDomains()
-
blockedDomains
final Optional<List<String>> blockedDomains()
-
maxContentTokens
final Optional<Integer> maxContentTokens()
-
_name
final JsonValue _name()
Expected to always return the following:
JsonValue.from("web_fetch")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_fetch")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<BetaManagedAgentsWebFetchToolConfig.PermissionPolicy> _permissionPolicy()
Returns the raw JSON value of permissionPolicy.
Unlike permissionPolicy, this method doesn't throw if the JSON field has an unexpected type.
-
_urlSources
final JsonField<BetaManagedAgentsWebFetchUrlSources> _urlSources()
Returns the raw JSON value of urlSources.
Unlike urlSources, 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.
-
_maxContentTokens
final JsonField<Integer> _maxContentTokens()
Returns the raw JSON value of maxContentTokens.
Unlike maxContentTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsWebFetchToolConfig.Builder toBuilder()
-
validate
final BetaManagedAgentsWebFetchToolConfig 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 BetaManagedAgentsWebFetchToolConfig.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsWebFetchToolConfig.
The following fields are required:
.enabled() .permissionPolicy() .urlSources()
-
-
-
-