FoldRequest class final
One provider request observed on the session chain.
Constructors
- FoldRequest({required String model, required int input, required int output, int cacheRead = 0, int cacheWrite = 0, int? reasoning, required UsageSource source})
-
Creates a FoldRequest.
const
Properties
- cacheRead → int
-
Input tokens served from a provider cache.
final
- cacheWrite → int
-
Input tokens written into a provider cache.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- input → int
-
Prompt (input) tokens — reported or estimated (see source).
final
- model → String
-
The model id the request ran on (provider-controlled string).
final
- output → int
-
Completion (output) tokens — reported or estimated (see source).
final
- reasoning → int?
-
Reasoning tokens, when the provider reported them.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → UsageSource
-
This request's own provenance: UsageSource.reported or
UsageSource.estimated (never
mixed— that is a scope-level marker derived by UsageFolder).final
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