DeciderRequest class final
A Decider.choose call as core checked it, handed to Decider.decide.
Core builds it. An option added to choose in a later release becomes a
new field here, so a decider written today keeps compiling.
- Annotations
-
- @experimental
- @immutable
Properties
- cancelToken → CancelToken?
-
The caller's token, or null.
final
-
candidates
→ List<
String> -
The candidates' ids, in option order: every option, or the ones
amongnamed (each once). Empty whenamongnamed none: the answer then abstains with AbstainReason.noCandidates. Unmodifiable.final - hashCode → int
-
The hash code for this object.
no setterinherited
- input → DeciderInput
-
What to decide on; its modalities are ones the decider takes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topK → int
-
The most candidates DeciderAnswer.ranked may hold; at least 1.
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