lib/anthropic/models/message_tokens_count.rb (7 lines of code) (raw):

# frozen_string_literal: true module Anthropic module Models # @see Anthropic::Resources::Messages#count_tokens class MessageTokensCount < Anthropic::Internal::Type::BaseModel # @!attribute input_tokens # The total number of tokens across the provided list of messages, system prompt, # and tools. # # @return [Integer] required :input_tokens, Integer # @!parse # # @param input_tokens [Integer] # # # def initialize(input_tokens:, **) = super # def initialize: (Hash | Anthropic::Internal::Type::BaseModel) -> void end end end