tasks-decision package

Classes

Class Description
DecisionMaker Performs structured on-device decision making (boolean questions, multiple-choice questions, and scalar scoring) over text or key-value contexts.
FilesetResolver Resolves the files required for the MediaPipe Task APIs.This class verifies whether SIMD is supported in the current environment and loads the SIMD files only if support is detected. The returned filesets require that the Wasm files are published without renaming. If this is not possible, you can invoke the MediaPipe Tasks APIs using a manually created WasmFileset.

Enumerations

Enumeration Description
ScoringMode Candidate option scoring strategy for DecisionMaker (SCORING_AUTO, SCORING_SINGLE_TOKEN, SCORING_FULL_OPTION).

Interfaces

Interface Description
BooleanQuestion A yes/no boolean question to evaluate against a context.
BooleanResult The calibrated probability and decision result for a BooleanQuestion.
ChoiceQuestion A multiple-choice question with a fixed set of candidate option strings.
ChoiceResult The selected option and probability distribution for a ChoiceQuestion.
DecisionContext Structured or free-text context evaluated by DecisionMaker (also exported as DecisionContextInput).
DecisionMakerOptions Options to configure the MediaPipe Decision Maker Task.
ScoreQuestion A numeric rating / scoring question over a configurable integer scale.
ScoreResult The expected numeric score and per-bucket probabilities for a ScoreQuestion.
WasmFileset A configuration object that provides the location of the Wasm binary and its loader.