struct

Crig::Providers::Cohere::BilledUnits

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(output_tokens : Float64 | Nil = nil, classifications : Float64 | Nil = nil, search_units : Float64 | Nil = nil, input_tokens : Float64 | Nil = nil)
Source
new(input_tokens : Int32 = 0, output_tokens : Int32 = 0, search_units : Int32 = 0, classifications : Int32 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

classifications
Source
input_tokens
Source
output_tokens
Source
search_units
Source