DeciderCapabilities class final
What a decider can do.
- Annotations
-
- @experimental
- @immutable
Constructors
-
DeciderCapabilities({required Set<
EmbeddingModality> modalities, required bool calibratedProbabilities, required bool supportsContext, required bool supportsAmong, required bool storable}) -
A capability added in a later release is an optional parameter with the
conservative default (the decider does not have it), so a decider
written today keeps compiling and claims nothing it does not do.
const
Properties
- calibratedProbabilities → bool
-
Whether answers carry calibrated probabilities and a confidence.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
modalities
→ Set<
EmbeddingModality> -
What an input may carry.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storable → bool
-
Whether
toArtifact()returns an artifact thatEmbeddingModel.loadDeciderrestores. It still throws StateError for an option whose metadata is not JSON-encodable.final - supportsAmong → bool
-
Whether
choose(among:)is honoured. Without it a non-nullamongfails withDeciderUnsupportedException.final - supportsContext → bool
-
Whether
DeciderInput.contextis read.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