LLM class

Constructors

LLM({bool? available, int? completionTokens, int? costCents, int? models, int? promptTokens, int? requests, String? source_, int? tokens})
Returns a new LLM instance.

Properties

available ↔ bool?
Available is false when the warehouse was not connected or a query blipped. The totals below are then honest zeros, NOT measured ones.
getter/setter pair
completionTokens ↔ int?
CompletionTokens is the output half.
getter/setter pair
costCents ↔ int?
CostCents is what they cost the org, in US cents. This IS a Hanzo charge.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
models ↔ int?
Models is how many distinct models were used.
getter/setter pair
promptTokens ↔ int?
PromptTokens is the input half of that total.
getter/setter pair
requests ↔ int?
Requests is how many completions the org made in the window.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source_ ↔ String?
Source names the warehouse table the totals came from.
getter/setter pair
tokens ↔ int?
Tokens is the total tokens those completions consumed.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → LLM?
Returns a new LLM instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<LLM>
mapFromJson(dynamic json) → Map<String, LLM>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<LLM>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.