Class: Anthropic::Models::ServerToolsCapability
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::ServerToolsCapability
- Defined in:
- lib/anthropic/models/server_tools_capability.rb,
sig/anthropic/models/server_tools_capability.rbs
Instance Attribute Summary collapse
-
#code_execution ⇒ Anthropic::Models::CapabilitySupport
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::CapabilitySupport
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(code_execution:, supported:, web_search:) ⇒ ServerToolsCapability
constructor
Web search and code execution tool support, with one entry per tool.
- #to_hash ⇒ { code_execution: Anthropic::CapabilitySupport, supported: bool, web_search: Anthropic::CapabilitySupport }
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(code_execution:, supported:, web_search:) ⇒ ServerToolsCapability
Web search and code execution tool support, with one entry per tool.
Some parameter documentations has been truncated, see Anthropic::Models::ServerToolsCapability for more details.
|
|
# File 'lib/anthropic/models/server_tools_capability.rb', line 26
|
Instance Attribute Details
#code_execution ⇒ Anthropic::Models::CapabilitySupport
Whether the model supports the code execution tool: true when the model supports at least one version of the tool, not necessarily every version.
11 |
# File 'lib/anthropic/models/server_tools_capability.rb', line 11 required :code_execution, -> { Anthropic::CapabilitySupport } |
#supported ⇒ Boolean
Whether this capability is supported by the model.
17 |
# File 'lib/anthropic/models/server_tools_capability.rb', line 17 required :supported, Anthropic::Internal::Type::Boolean |
#web_search ⇒ Anthropic::Models::CapabilitySupport
Whether the model supports the web search tool: true when the model supports at least one version of the tool, not necessarily every version.
24 |
# File 'lib/anthropic/models/server_tools_capability.rb', line 24 required :web_search, -> { Anthropic::CapabilitySupport } |
Instance Method Details
#to_hash ⇒ { code_execution: Anthropic::CapabilitySupport, supported: bool, web_search: Anthropic::CapabilitySupport }
23 24 25 26 27 |
# File 'sig/anthropic/models/server_tools_capability.rbs', line 23
def to_hash: -> {
code_execution: Anthropic::CapabilitySupport,
supported: bool,
web_search: Anthropic::CapabilitySupport
}
|