DeciderOption class final

One option a decider can choose: an intent, an action, a screen, a tool, a label, a route.

An embedding decider represents the option by the centroid of its inputs: the description (when given) and every one of examples, all embedded with TaskType.sentenceSimilarity. A description alone is zero-shot; a few example requests per option (5–30 measured) are what make it accurate.

Annotations

Constructors

DeciderOption(String id, {String? description, List<EmbeddingInput> examples = const [], Map<String, Object?>? metadata})
Throws ArgumentError when id is empty or description is empty (leave it out instead).

Properties

description → String?
What the option means, in words. Embedded as one more input of the option.
final
examples → List<EmbeddingInput>
Requests that mean this option. Unmodifiable.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Stable, unique within one decider. The answer's choice.
final
metadata → Map<String, Object?>?
App data carried with the option and never embedded. Unmodifiable.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Methods

fromJevChoice(Map<String, Object?> question) → List<DeciderOption>
The options of a Jev Choice question (TypeSafe AI's wire format): one option per criteria entry, its key the id.