Class: Anthropic::Models::BrowserToolset20260801

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/browser_toolset_20260801.rb,
sig/anthropic/models/browser_toolset_20260801.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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(cache_control: nil, configs: nil, type: :browser_toolset_20260801) ⇒ BrowserToolset20260801

The browser toolset: a single tools[] entry (carrying no name) that declares the browser tool family. The model is served the family's tool with any members disabled via configs removed from its schema.

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

Parameters:



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

Instance Attribute Details

#cache_control ⇒ Anthropic::Models::CacheControlEphemeral?

Create a cache control breakpoint at this content block.



15
# File 'lib/anthropic/models/browser_toolset_20260801.rb', line 15

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

#configs ⇒ Anthropic::Models::BrowserToolsetConfigs?

Sparse per-member overrides, keyed by member name. Absent, null, and {} are equivalent; a member's defaults apply wherever its key is absent.



22
# File 'lib/anthropic/models/browser_toolset_20260801.rb', line 22

optional :configs, -> { Anthropic::BrowserToolsetConfigs }, nil?: true

#type ⇒ Symbol, :browser_toolset_20260801

Parameters:

  • value (:browser_toolset_20260801)

Returns:

  • (Symbol, :browser_toolset_20260801)


9
# File 'lib/anthropic/models/browser_toolset_20260801.rb', line 9

required :type, const: :browser_toolset_20260801

Instance Method Details

#to_hash ⇒ { type: :browser_toolset_20260801, cache_control: Anthropic::CacheControlEphemeral?, configs: Anthropic::BrowserToolsetConfigs? }

Returns:



23
24
25
26
27
# File 'sig/anthropic/models/browser_toolset_20260801.rbs', line 23

def to_hash: -> {
  type: :browser_toolset_20260801,
  cache_control: Anthropic::CacheControlEphemeral?,
  configs: Anthropic::BrowserToolsetConfigs?
}