BundleSamplerRead class final

The outcome of reading a bundle's sampler: sampler, empty when the bundle ships none, or the error that stopped the read.

Constructors

BundleSamplerRead(BundleSampler sampler, {bool? declaresChannel})
const
BundleSamplerRead.failed(String error)
const
BundleSamplerRead.notRead()
const

Properties

declaresChannel → bool?
Whether the bundle declares an output channel, which LiteRT-LM's thinking budget caps; null when the bundle was not read, or the read failed.
final
error → String?
Why the read failed, with its type and stack; null when it worked.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sampler → BundleSampler
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