tasks-decision package
Stay organized with collections
Save and categorize content based on your preferences.
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. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-11-05 UTC.
[null,null,["Last updated 2026-11-05 UTC."],[],[]]