Class: Anthropic::Models::ComputerToolset20260801

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

Defined Under Namespace

Modules: AllowedCaller

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(allowed_callers: nil, cache_control: nil, configs: nil, type: :computer_toolset_20260801) ⇒ Object

The computer toolset: a single tools[] entry (carrying no name) that declares the computer tool family. The model is served the family's tool with any members disabled via configs removed from its schema. Every member is enabled by default, zoom included. The single-tool options display_number and enable_zoom are not fields of a toolset entry — it carries only type, configs, and cache_control; zoom is controlled via configs.zoom.enabled.

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

Parameters:



# File 'lib/anthropic/models/computer_toolset_20260801.rb', line 33

Instance Attribute Details

#allowed_callersArray<Symbol, Anthropic::Models::ComputerToolset20260801::AllowedCaller>?



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

optional :allowed_callers,
-> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::ComputerToolset20260801::AllowedCaller] }

#cache_controlAnthropic::Models::CacheControlEphemeral?

Create a cache control breakpoint at this content block.



21
# File 'lib/anthropic/models/computer_toolset_20260801.rb', line 21

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

#configsAnthropic::Models::ComputerToolsetConfigs?

Per-member configuration for computer_toolset_20260801: one optional field per member tool, keyed by the member name — the same name the member's tool_use blocks carry. Every member is an accepted key, and a member's defaults apply wherever its key is absent. Unknown keys are rejected: the field set is this toolset version's complete member set.



31
# File 'lib/anthropic/models/computer_toolset_20260801.rb', line 31

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

#typeSymbol, :computer_toolset_20260801

Parameters:

  • value (:computer_toolset_20260801)

Returns:

  • (Symbol, :computer_toolset_20260801)


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

required :type, const: :computer_toolset_20260801

Instance Method Details

#to_hash{

Returns:

  • ({)


31
# File 'sig/anthropic/models/computer_toolset_20260801.rbs', line 31

def to_hash: -> {