Class: Anthropic::Models::Beta::BetaWebSearchTool20250305
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaWebSearchTool20250305
- Defined in:
- lib/anthropic/models/beta/beta_web_search_tool_20250305.rb
Defined Under Namespace
Classes: UserLocation
Instance Attribute Summary collapse
-
#allowed_domains ⇒ Array<String>?
If provided, only these domains will be included in results.
-
#blocked_domains ⇒ Array<String>?
If provided, these domains will never appear in results.
-
#cache_control ⇒ Anthropic::Models::Beta::BetaCacheControlEphemeral?
Create a cache control breakpoint at this content block.
-
#max_uses ⇒ Integer?
Maximum number of times the tool can be used in the API request.
-
#name ⇒ Symbol, :web_search
Name of the tool.
- #strict ⇒ Boolean?
- #type ⇒ Symbol, :web_search_20250305
-
#user_location ⇒ Anthropic::Models::Beta::BetaWebSearchTool20250305::UserLocation?
Parameters for the user's location.
Instance Method Summary collapse
-
#initialize(allowed_domains: nil, blocked_domains: nil, cache_control: nil, max_uses: nil, strict: nil, user_location: nil, name: :web_search, type: :web_search_20250305) ⇒ void
constructor
Some parameter documentations has been truncated, see BetaWebSearchTool20250305 for more details.
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, cache_control: 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.
|
|
# File 'lib/anthropic/models/beta/beta_web_search_tool_20250305.rb', line 58
|
Instance Attribute Details
#allowed_domains ⇒ Array<String>?
If provided, only these domains will be included in results. Cannot be used
alongside blocked_domains.
25 |
# File 'lib/anthropic/models/beta/beta_web_search_tool_20250305.rb', line 25 optional :allowed_domains, Anthropic::Internal::Type::ArrayOf[String], nil?: true |
#blocked_domains ⇒ Array<String>?
If provided, these domains will never appear in results. Cannot be used
alongside allowed_domains.
32 |
# File 'lib/anthropic/models/beta/beta_web_search_tool_20250305.rb', line 32 optional :blocked_domains, Anthropic::Internal::Type::ArrayOf[String], nil?: true |
#cache_control ⇒ Anthropic::Models::Beta::BetaCacheControlEphemeral?
Create a cache control breakpoint at this content block.
38 |
# File 'lib/anthropic/models/beta/beta_web_search_tool_20250305.rb', line 38 optional :cache_control, -> { Anthropic::Beta::BetaCacheControlEphemeral }, nil?: true |
#max_uses ⇒ Integer?
Maximum number of times the tool can be used in the API request.
44 |
# File 'lib/anthropic/models/beta/beta_web_search_tool_20250305.rb', line 44 optional :max_uses, Integer, nil?: true |
#name ⇒ Symbol, :web_search
Name of the tool.
This is how the tool will be called by the model and in tool_use blocks.
13 |
# File 'lib/anthropic/models/beta/beta_web_search_tool_20250305.rb', line 13 required :name, const: :web_search |
#strict ⇒ Boolean?
49 |
# File 'lib/anthropic/models/beta/beta_web_search_tool_20250305.rb', line 49 optional :strict, Anthropic::Internal::Type::Boolean |
#type ⇒ Symbol, :web_search_20250305
18 |
# File 'lib/anthropic/models/beta/beta_web_search_tool_20250305.rb', line 18 required :type, const: :web_search_20250305 |
#user_location ⇒ Anthropic::Models::Beta::BetaWebSearchTool20250305::UserLocation?
Parameters for the user's location. Used to provide more relevant search results.
56 |
# File 'lib/anthropic/models/beta/beta_web_search_tool_20250305.rb', line 56 optional :user_location, -> { Anthropic::Beta::BetaWebSearchTool20250305::UserLocation }, nil?: true |