Class: Zavudev::Models::Senders::SendersAgent::Stats

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/zavudev/models/senders/agent.rb

Overview

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

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(total_cost: nil, total_invocations: nil, total_tokens_used: nil) ⇒ Object

Parameters:

  • total_cost (Float) (defaults to: nil)

    Total cost in USD.

  • total_invocations (Integer) (defaults to: nil)
  • total_tokens_used (Integer) (defaults to: nil)


# File 'lib/zavudev/models/senders/agent.rb', line 154

Instance Attribute Details

#total_costFloat?

Total cost in USD.

Returns:

  • (Float, nil)


142
# File 'lib/zavudev/models/senders/agent.rb', line 142

optional :total_cost, Float, api_name: :totalCost

#total_invocationsInteger?

Returns:

  • (Integer, nil)


147
# File 'lib/zavudev/models/senders/agent.rb', line 147

optional :total_invocations, Integer, api_name: :totalInvocations

#total_tokens_usedInteger?

Returns:

  • (Integer, nil)


152
# File 'lib/zavudev/models/senders/agent.rb', line 152

optional :total_tokens_used, Integer, api_name: :totalTokensUsed