UsageSource enum

Provenance of a token count: the provider reported it inline, the fold estimated it (chars/4 heuristic), or a mix of both kinds inside one segment/total.

Inheritance
Available extensions

Values

reported → const UsageSource

Every request in the scope carried provider-reported usage.

estimated → const UsageSource

At least one request in the scope lacked provider usage and was priced by the estimator; none were reported.

mixed → const UsageSource

Both reported and estimated requests are present in the scope.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
wire → String
The wire name written into usage.json.
no setter

Methods

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

Operators

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

Constants

values → const List<UsageSource>
A constant List of the values in this enum, in order of their declaration.