Class: Handinger::Models::Worker::Usage
Overview
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(cache_read_tokens:, cache_write_tokens:, cost_usd:, input_tokens:, output_tokens:, reasoning_tokens:, steps:, total_tokens:, credits: nil, duration_ms: nil) ⇒ Object
|
# File 'lib/handinger/models/worker.rb', line 352
|
Instance Attribute Details
#cache_read_tokens ⇒ Integer
305
|
# File 'lib/handinger/models/worker.rb', line 305
required :cache_read_tokens, Integer, api_name: :cacheReadTokens
|
#cache_write_tokens ⇒ Integer
310
|
# File 'lib/handinger/models/worker.rb', line 310
required :cache_write_tokens, Integer, api_name: :cacheWriteTokens
|
#cost_usd ⇒ Float
315
|
# File 'lib/handinger/models/worker.rb', line 315
required :cost_usd, Float, api_name: :costUsd
|
#credits ⇒ Integer?
345
|
# File 'lib/handinger/models/worker.rb', line 345
optional :credits, Integer
|
#duration_ms ⇒ Integer?
350
|
# File 'lib/handinger/models/worker.rb', line 350
optional :duration_ms, Integer, api_name: :durationMs
|
320
|
# File 'lib/handinger/models/worker.rb', line 320
required :input_tokens, Integer, api_name: :inputTokens
|
#output_tokens ⇒ Integer
325
|
# File 'lib/handinger/models/worker.rb', line 325
required :output_tokens, Integer, api_name: :outputTokens
|
#reasoning_tokens ⇒ Integer
330
|
# File 'lib/handinger/models/worker.rb', line 330
required :reasoning_tokens, Integer, api_name: :reasoningTokens
|
#steps ⇒ Integer
335
|
# File 'lib/handinger/models/worker.rb', line 335
required :steps, Integer
|
#total_tokens ⇒ Integer
340
|
# File 'lib/handinger/models/worker.rb', line 340
required :total_tokens, Integer, api_name: :totalTokens
|