LLMOverview class

Constructors

LLMOverview({bool? available, int? completionTokens, num? errorRate, int? errors, int? models, int? promptTokens, int? providers, int? requests, String? source_, int? spendCents, int? tokens})
Returns a new LLMOverview instance.

Properties

available ↔ bool?
Available is true whenever the ledger answered — including with no usage in the window, which is honest zeros rather than a missing lens.
getter/setter pair
completionTokens ↔ int?
CompletionTokens is the output half of Tokens.
getter/setter pair
errorRate ↔ num?
ErrorRate is Errors/Requests, 0..1, rounded to three places. Zero when there were no requests.
getter/setter pair
errors ↔ int?
Errors is how many of Requests failed.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
models ↔ int?
Models is how many distinct models the org called.
getter/setter pair
promptTokens ↔ int?
PromptTokens is the input half of Tokens.
getter/setter pair
providers ↔ int?
Providers is how many distinct providers served them.
getter/setter pair
requests ↔ int?
Requests is how many LLM calls 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 is the warehouse table the lens read.
getter/setter pair
spendCents ↔ int?
SpendCents is what those calls cost, in cents.
getter/setter pair
tokens ↔ int?
Tokens is prompt plus completion tokens over those calls.
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) → LLMOverview?
Returns a new LLMOverview instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<LLMOverview>
mapFromJson(dynamic json) → Map<String, LLMOverview>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<LLMOverview>>

Constants

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