Class: Anthropic::Models::Beta::BetaServerToolsCapability

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

Returns a new instance of BetaServerToolsCapability.

Parameters:

  • code_execution: (Anthropic::Beta::BetaCapabilitySupport)
  • supported: (Boolean)
  • web_search: (Anthropic::Beta::BetaCapabilitySupport)


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

def initialize: (
  code_execution: Anthropic::Beta::BetaCapabilitySupport,
  supported: bool,
  web_search: Anthropic::Beta::BetaCapabilitySupport
) -> void

Instance Attribute Details

#code_execution ⇒ Anthropic::Models::Beta::BetaCapabilitySupport

Whether the model supports the code execution tool: true when the model supports at least one version of the tool, not necessarily every version.

Parameters:

  • value (Anthropic::Beta::BetaCapabilitySupport)

Returns:



12
# File 'lib/anthropic/models/beta/beta_server_tools_capability.rb', line 12

required :code_execution, -> { Anthropic::Beta::BetaCapabilitySupport }

#supported ⇒ Boolean

Whether this capability is supported by the model.

Parameters:

Returns:



18
# File 'lib/anthropic/models/beta/beta_server_tools_capability.rb', line 18

required :supported, Anthropic::Internal::Type::Boolean

#web_search ⇒ Anthropic::Models::Beta::BetaCapabilitySupport

Whether the model supports the web search tool: true when the model supports at least one version of the tool, not necessarily every version.

Parameters:

  • value (Anthropic::Beta::BetaCapabilitySupport)

Returns:



25
# File 'lib/anthropic/models/beta/beta_server_tools_capability.rb', line 25

required :web_search, -> { Anthropic::Beta::BetaCapabilitySupport }

Instance Method Details

#to_hash ⇒ { code_execution: Anthropic::Beta::BetaCapabilitySupport, supported: bool, web_search: Anthropic::Beta::BetaCapabilitySupport }

Returns:

  • ({ code_execution: Anthropic::Beta::BetaCapabilitySupport, supported: bool, web_search: Anthropic::Beta::BetaCapabilitySupport })


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

def to_hash: -> {
  code_execution: Anthropic::Beta::BetaCapabilitySupport,
  supported: bool,
  web_search: Anthropic::Beta::BetaCapabilitySupport
}