Class: Anthropic::Models::Beta::BetaManagedAgentsWebFetchToolConfigParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaManagedAgentsWebFetchToolConfigParams
- Defined in:
- lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb,
sig/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbs
Defined Under Namespace
Modules: PermissionPolicy, Type
Instance Attribute Summary collapse
-
#allowed_domains ⇒ Array<String>?
Only fetch URLs whose host is one of these domains or a subdomain of one.
-
#blocked_domains ⇒ Array<String>?
Never fetch URLs whose host is one of these domains or a subdomain of one.
-
#enabled ⇒ Boolean?
Whether this tool is enabled and available to Claude.
-
#max_content_tokens ⇒ Integer?
Maximum number of tokens of fetched text content to include in context per call.
-
#name ⇒ Symbol, :web_fetch
Must be "web_fetch".
-
#permission_policy ⇒ Anthropic::Models::Beta::BetaManagedAgentsAlwaysAllowPolicy, ...
Permission policy for tool execution.
- #type ⇒ Symbol, ...
Instance Method Summary collapse
-
#initialize(allowed_domains: nil, blocked_domains: nil, enabled: nil, max_content_tokens: nil, permission_policy: nil, type: nil, name: :web_fetch) ⇒ Object
constructor
Configuration override for the web_fetch tool.
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(allowed_domains: nil, blocked_domains: nil, enabled: nil, max_content_tokens: nil, permission_policy: nil, type: nil, name: :web_fetch) ⇒ Object
Configuration override for the web_fetch tool.
Some parameter documentations has been truncated, see Anthropic::Models::Beta::BetaManagedAgentsWebFetchToolConfigParams for more details.
|
|
# File 'lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb', line 58
|
Instance Attribute Details
#allowed_domains ⇒ Array<String>?
Only fetch URLs whose host is one of these domains or a subdomain of one. Each entry is a plain hostname like "docs.example.com" (no scheme, port, or path). At most 64 entries; an empty list is rejected (omit the field instead). Cannot be combined with blocked_domains.
20 |
# File 'lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb', line 20 optional :allowed_domains, Anthropic::Internal::Type::ArrayOf[String] |
#blocked_domains ⇒ Array<String>?
Never fetch URLs whose host is one of these domains or a subdomain of one. Each entry is a plain hostname like "ads.example.com" (no scheme, port, or path). At most 64 entries; an empty list is rejected (omit the field instead). Cannot be combined with allowed_domains.
29 |
# File 'lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb', line 29 optional :blocked_domains, Anthropic::Internal::Type::ArrayOf[String] |
#enabled ⇒ Boolean?
Whether this tool is enabled and available to Claude. Overrides the default_config setting.
36 |
# File 'lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb', line 36 optional :enabled, Anthropic::Internal::Type::Boolean, nil?: true |
#max_content_tokens ⇒ Integer?
Maximum number of tokens of fetched text content to include in context per call. Does not apply to binary content such as PDFs.
43 |
# File 'lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb', line 43 optional :max_content_tokens, Integer, nil?: true |
#name ⇒ Symbol, :web_fetch
Must be "web_fetch".
11 |
# File 'lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb', line 11 required :name, const: :web_fetch |
#permission_policy ⇒ Anthropic::Models::Beta::BetaManagedAgentsAlwaysAllowPolicy, ...
Permission policy for tool execution.
49 50 51 |
# File 'lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb', line 49 optional :permission_policy, union: -> { Anthropic::Beta::BetaManagedAgentsWebFetchToolConfigParams::PermissionPolicy }, nil?: true |
#type ⇒ Symbol, ...
56 |
# File 'lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb', line 56 optional :type, enum: -> { Anthropic::Beta::BetaManagedAgentsWebFetchToolConfigParams::Type } |
Instance Method Details
#to_hash ⇒ {
50 |
# File 'sig/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbs', line 50
def to_hash: -> {
|