Module: Anthropic::Models::Beta::BetaWebFetchTool20250910::AllowedCaller

Extended by:
Internal::Type::Enum
Defined in:
lib/anthropic/models/beta/beta_web_fetch_tool_20250910.rb

Constant Summary collapse

DIRECT =
:direct
CODE_EXECUTION_20250825 =
:code_execution_20250825

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, values

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Instance Method Details

#initialize(allowed_callers: nil, allowed_domains: nil, blocked_domains: nil, cache_control: nil, citations: nil, defer_loading: nil, max_content_tokens: nil, max_uses: nil, strict: nil, name: :web_fetch, type: :web_fetch_20250910) ⇒ void

Some parameter documentations has been truncated, see Anthropic::Models::Beta::BetaWebFetchTool20250910 for more details.

Parameters:

  • allowed_callers (Array<Symbol, Anthropic::Models::Beta::BetaWebFetchTool20250910::AllowedCaller>) (defaults to: nil)
  • allowed_domains (Array<String>, nil) (defaults to: nil)

    List of domains to allow fetching from

  • blocked_domains (Array<String>, nil) (defaults to: nil)

    List of domains to block fetching from

  • cache_control (Anthropic::Models::Beta::BetaCacheControlEphemeral, nil) (defaults to: nil)

    Create a cache control breakpoint at this content block.

  • citations (Anthropic::Models::Beta::BetaCitationsConfigParam, nil) (defaults to: nil)

    Citations configuration for fetched documents. Citations are disabled by default

  • defer_loading (Boolean) (defaults to: nil)

    If true, tool will not be included in initial system prompt. Only loaded when re

  • max_content_tokens (Integer, nil) (defaults to: nil)

    Maximum number of tokens used by including web page text content in the context.

  • max_uses (Integer, nil) (defaults to: nil)

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

  • strict (Boolean) (defaults to: nil)
  • name (Symbol, :web_fetch) (defaults to: :web_fetch)

    Name of the tool.

  • type (Symbol, :web_fetch_20250910) (defaults to: :web_fetch_20250910)


102
103
104
105
106
107
108
109
110
# File 'lib/anthropic/models/beta/beta_web_fetch_tool_20250910.rb', line 102

module AllowedCaller
  extend Anthropic::Internal::Type::Enum

  DIRECT = :direct
  CODE_EXECUTION_20250825 = :code_execution_20250825

  # @!method self.values
  #   @return [Array<Symbol>]
end