Module: Anthropic::Models::Beta::BetaWebSearchTool20250305::AllowedCaller

Extended by:
Internal::Type::Enum
Defined in:
lib/anthropic/models/beta/beta_web_search_tool_20250305.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, defer_loading: nil, max_uses: nil, strict: nil, user_location: nil, name: :web_search, type: :web_search_20250305) ⇒ void

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

Parameters:

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

    If provided, only these domains will be included in results. Cannot be used alon

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

    If provided, these domains will never appear in results. Cannot be used alongsid

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

    Create a cache control breakpoint at this content block.

  • defer_loading (Boolean) (defaults to: nil)

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

  • 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)
  • user_location (Anthropic::Models::Beta::BetaWebSearchTool20250305::UserLocation, nil) (defaults to: nil)

    Parameters for the user's location. Used to provide more relevant search results

  • name (Symbol, :web_search) (defaults to: :web_search)

    Name of the tool.

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


95
96
97
98
99
100
101
102
103
# File 'lib/anthropic/models/beta/beta_web_search_tool_20250305.rb', line 95

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

  DIRECT = :direct
  CODE_EXECUTION_20250825 = :code_execution_20250825

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