Class: Anthropic::Models::Beta::BetaThinkingDelta

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_thinking_delta.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from Anthropic::Internal::Type::BaseModel

Instance Attribute Details

#estimated_tokensInteger?

Per-frame increment of a coarse, running estimate of the tokens this thinking block has produced so far. Present whenever the ‘thinking-token-count-2026-05-13` beta is set; `null` unless `thinking.display` resolves to `“omitted”` and a count is due this frame. Sum the increments across `thinking_delta` frames on this block for a progress indicator. Each increment is a non-negative multiple of a fixed quantum and the cadence is rate-limited, so this is a deliberately lossy display hint, not a billable count; `usage.output_tokens` remains authoritative.

Returns:

  • (Integer, nil)


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

required :estimated_tokens, Integer, nil?: true

#thinkingString

Returns:

  • (String)


23
# File 'lib/anthropic/models/beta/beta_thinking_delta.rb', line 23

required :thinking, String

#typeSymbol, :thinking_delta

Returns:

  • (Symbol, :thinking_delta)


28
# File 'lib/anthropic/models/beta/beta_thinking_delta.rb', line 28

required :type, const: :thinking_delta