Class: Anthropic::Models::WebSearchTool20260209
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::WebSearchTool20260209
- Defined in:
- lib/anthropic/models/web_search_tool_20260209.rb
Defined Under Namespace
Modules: AllowedCaller
Constant Summary collapse
- UserLocation =
Deprecated.
Use UserLocation instead.
Anthropic::Models::UserLocation
Instance Attribute Summary collapse
- #allowed_callers ⇒ Array<Symbol, Anthropic::Models::WebSearchTool20260209::AllowedCaller>?
-
#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::CacheControlEphemeral?
Create a cache control breakpoint at this content block.
-
#defer_loading ⇒ Boolean?
If true, tool will not be included in initial system prompt.
-
#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?
When true, guarantees schema validation on tool names and inputs.
- #type ⇒ Symbol, :web_search_20260209
-
#user_location ⇒ Anthropic::Models::UserLocation?
Parameters for the user's location.
Class Method Summary collapse
Instance Method Summary collapse
-
#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_20260209) ⇒ void
constructor
Some parameter documentations has been truncated, see WebSearchTool20260209 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_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_20260209) ⇒ void
Some parameter documentations has been truncated, see Anthropic::Models::WebSearchTool20260209 for more details.
|
|
# File 'lib/anthropic/models/web_search_tool_20260209.rb', line 71
|
Instance Attribute Details
#allowed_callers ⇒ Array<Symbol, Anthropic::Models::WebSearchTool20260209::AllowedCaller>?
22 23 |
# File 'lib/anthropic/models/web_search_tool_20260209.rb', line 22 optional :allowed_callers, -> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::WebSearchTool20260209::AllowedCaller] } |
#allowed_domains ⇒ Array<String>?
If provided, only these domains will be included in results. Cannot be used
alongside blocked_domains.
30 |
# File 'lib/anthropic/models/web_search_tool_20260209.rb', line 30 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.
37 |
# File 'lib/anthropic/models/web_search_tool_20260209.rb', line 37 optional :blocked_domains, Anthropic::Internal::Type::ArrayOf[String], nil?: true |
#cache_control ⇒ Anthropic::Models::CacheControlEphemeral?
Create a cache control breakpoint at this content block.
43 |
# File 'lib/anthropic/models/web_search_tool_20260209.rb', line 43 optional :cache_control, -> { Anthropic::CacheControlEphemeral }, nil?: true |
#defer_loading ⇒ Boolean?
If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
50 |
# File 'lib/anthropic/models/web_search_tool_20260209.rb', line 50 optional :defer_loading, Anthropic::Internal::Type::Boolean |
#max_uses ⇒ Integer?
Maximum number of times the tool can be used in the API request.
56 |
# File 'lib/anthropic/models/web_search_tool_20260209.rb', line 56 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.
12 |
# File 'lib/anthropic/models/web_search_tool_20260209.rb', line 12 required :name, const: :web_search |
#strict ⇒ Boolean?
When true, guarantees schema validation on tool names and inputs
62 |
# File 'lib/anthropic/models/web_search_tool_20260209.rb', line 62 optional :strict, Anthropic::Internal::Type::Boolean |
#type ⇒ Symbol, :web_search_20260209
17 |
# File 'lib/anthropic/models/web_search_tool_20260209.rb', line 17 required :type, const: :web_search_20260209 |
#user_location ⇒ Anthropic::Models::UserLocation?
Parameters for the user's location. Used to provide more relevant search results.
69 |
# File 'lib/anthropic/models/web_search_tool_20260209.rb', line 69 optional :user_location, -> { Anthropic::UserLocation }, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/web_search_tool_20260209.rb', line 108
|