Class: Anthropic::Models::Beta::BetaWebFetchTool20250910

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_web_fetch_tool_20250910.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

#==, ==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from Anthropic::Internal::Type::BaseModel

Instance Attribute Details

#allowed_domainsArray<String>?

List of domains to allow fetching from

Returns:

  • (Array<String>, nil)


24
# File 'lib/anthropic/models/beta/beta_web_fetch_tool_20250910.rb', line 24

optional :allowed_domains, Anthropic::Internal::Type::ArrayOf[String], nil?: true

#blocked_domainsArray<String>?

List of domains to block fetching from

Returns:

  • (Array<String>, nil)


30
# File 'lib/anthropic/models/beta/beta_web_fetch_tool_20250910.rb', line 30

optional :blocked_domains, Anthropic::Internal::Type::ArrayOf[String], nil?: true

#cache_controlAnthropic::Models::Beta::BetaCacheControlEphemeral?

Create a cache control breakpoint at this content block.



36
# File 'lib/anthropic/models/beta/beta_web_fetch_tool_20250910.rb', line 36

optional :cache_control, -> { Anthropic::Beta::BetaCacheControlEphemeral }, nil?: true

#citationsAnthropic::Models::Beta::BetaCitationsConfigParam?

Citations configuration for fetched documents. Citations are disabled by default.



43
# File 'lib/anthropic/models/beta/beta_web_fetch_tool_20250910.rb', line 43

optional :citations, -> { Anthropic::Beta::BetaCitationsConfigParam }, nil?: true

#max_content_tokensInteger?

Maximum number of tokens used by including web page text content in the context. The limit is approximate and does not apply to binary content such as PDFs.

Returns:

  • (Integer, nil)


50
# File 'lib/anthropic/models/beta/beta_web_fetch_tool_20250910.rb', line 50

optional :max_content_tokens, Integer, nil?: true

#max_usesInteger?

Maximum number of times the tool can be used in the API request.

Returns:

  • (Integer, nil)


56
# File 'lib/anthropic/models/beta/beta_web_fetch_tool_20250910.rb', line 56

optional :max_uses, Integer, nil?: true

#nameSymbol, :web_fetch

Name of the tool.

This is how the tool will be called by the model and in tool_use blocks.

Returns:

  • (Symbol, :web_fetch)


13
# File 'lib/anthropic/models/beta/beta_web_fetch_tool_20250910.rb', line 13

required :name, const: :web_fetch

#typeSymbol, :web_fetch_20250910

Returns:

  • (Symbol, :web_fetch_20250910)


18
# File 'lib/anthropic/models/beta/beta_web_fetch_tool_20250910.rb', line 18

required :type, const: :web_fetch_20250910