Module: Anthropic::Models::MessageCountTokensTool

Extended by:
Internal::Type::Union
Defined in:
lib/anthropic/models/message_count_tokens_tool.rb,
sig/anthropic/models/message_count_tokens_tool.rbs

Overview

Code execution tool with REPL state persistence (daemon mode + gVisor checkpoint).

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.variantsArray(Anthropic::Models::Tool, Anthropic::Models::ToolBash20250124, Anthropic::Models::CodeExecutionTool20250522, Anthropic::Models::CodeExecutionTool20250825, Anthropic::Models::CodeExecutionTool20260120, Anthropic::Models::CodeExecutionTool20260521, Anthropic::Models::MemoryTool20250818, Anthropic::Models::ToolTextEditor20250124, Anthropic::Models::ToolTextEditor20250429, Anthropic::Models::ToolTextEditor20250728, Anthropic::Models::WebSearchTool20250305, Anthropic::Models::WebFetchTool20250910, Anthropic::Models::WebSearchTool20260209, Anthropic::Models::WebFetchTool20260209, Anthropic::Models::WebFetchTool20260309, Anthropic::Models::WebSearchTool20260318, Anthropic::Models::WebFetchTool20260318, Anthropic::Models::ToolSearchToolBm25_20251119, Anthropic::Models::ToolSearchToolRegex20251119)



# File 'lib/anthropic/models/message_count_tokens_tool.rb', line 51

Instance Method Details

#self?.variants::Array[Anthropic::Models::message_count_tokens_tool]

Returns:

  • (::Array[Anthropic::Models::message_count_tokens_tool])


27
# File 'sig/anthropic/models/message_count_tokens_tool.rbs', line 27

def self?.variants: -> ::Array[Anthropic::Models::message_count_tokens_tool]