Class: Anthropic::Models::Beta::BetaComputerToolset20260801

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_computer_toolset_20260801.rb,
sig/anthropic/models/beta/beta_computer_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 ⇒ BetaComputerToolset20260801

Returns a new instance of BetaComputerToolset20260801.

Parameters:

  • cache_control: (Anthropic::Beta::BetaCacheControlEphemeral, nil)
  • configs: (Anthropic::Beta::BetaComputerToolsetConfigs, nil)
  • type: (:computer_toolset_20260801)


20
21
22
23
24
# File 'sig/anthropic/models/beta/beta_computer_toolset_20260801.rbs', line 20

def initialize: (
  ?cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
  ?configs: Anthropic::Beta::BetaComputerToolsetConfigs?,
  ?type: :computer_toolset_20260801
) -> void

Instance Attribute Details

#cache_control ⇒ Anthropic::Models::Beta::BetaCacheControlEphemeral?

Create a cache control breakpoint at this content block.

Parameters:

  • value (Anthropic::Beta::BetaCacheControlEphemeral, nil)

Returns:



16
# File 'lib/anthropic/models/beta/beta_computer_toolset_20260801.rb', line 16

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

#configs ⇒ Anthropic::Models::Beta::BetaComputerToolsetConfigs?

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

Parameters:

  • value (Anthropic::Beta::BetaComputerToolsetConfigs, nil)

Returns:



23
# File 'lib/anthropic/models/beta/beta_computer_toolset_20260801.rb', line 23

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

#type ⇒ Symbol, :computer_toolset_20260801

Parameters:

  • value (:computer_toolset_20260801)

Returns:

  • (Symbol, :computer_toolset_20260801)


10
# File 'lib/anthropic/models/beta/beta_computer_toolset_20260801.rb', line 10

required :type, const: :computer_toolset_20260801

Instance Method Details

#to_hash ⇒ { type: :computer_toolset_20260801, cache_control: Anthropic::Beta::BetaCacheControlEphemeral?, configs: Anthropic::Beta::BetaComputerToolsetConfigs? }

Returns:

  • ({ type: :computer_toolset_20260801, cache_control: Anthropic::Beta::BetaCacheControlEphemeral?, configs: Anthropic::Beta::BetaComputerToolsetConfigs? })


26
27
28
29
30
# File 'sig/anthropic/models/beta/beta_computer_toolset_20260801.rbs', line 26

def to_hash: -> {
  type: :computer_toolset_20260801,
  cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
  configs: Anthropic::Beta::BetaComputerToolsetConfigs?
}