Class: Anthropic::Models::Beta::BetaServerToolsCapability
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaServerToolsCapability
- Defined in:
- lib/anthropic/models/beta/beta_server_tools_capability.rb,
sig/anthropic/models/beta/beta_server_tools_capability.rbs
Instance Attribute Summary collapse
-
#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.
-
#supported ⇒ Boolean
Whether this capability is supported by the model.
-
#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.
Instance Method Summary collapse
-
#initialize ⇒ BetaServerToolsCapability
constructor
A new instance of BetaServerToolsCapability.
- #to_hash ⇒ { code_execution: Anthropic::Beta::BetaCapabilitySupport, supported: bool, web_search: Anthropic::Beta::BetaCapabilitySupport }
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.
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.
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.
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.
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 }
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
}
|