Classes
| Class | Description |
|---|---|
| DecisionMaker | MediaPipe Task that performs semantic decision making. |
| FilesetResolver | Resolves the files required for the MediaPipe Task APIs.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. |
Interfaces
| Interface | Description |
|---|---|
| BooleanQuestion | Question configuration for a Boolean Predicate evaluation. |
| BooleanResult | Result of evaluating a Boolean. |
| ChoiceQuestion | Question configuration for a Categorical Choice evaluation. |
| ChoiceResult | Result of evaluating a Choice. |
| ClassifierDecision | Unified decision output for a single ClassifierQuestion. |
| ClassifierEvaluateOptions | Per-call options for evaluate(), evaluateBatch(), and classify(). |
| ClassifierExpectedInput | Expected input modality and language configuration. |
| ClassifierOption | A single candidate option for binary, categorical, or ordinal questions. |
| ClassifierOptionProbability | Calibrated probability entry for a single candidate option. |
| ClassifierQuestion | A single question within a multi-question ClassifierSchema. |
| ClassifierSchema | Multi-question decision schema compatible with the Web Classifier API. |
| DecisionContextInput | Multimodal decision input combining text, encoded image bytes, and/or 16kHz mono PCM audio samples. |
| DecisionMakerOptions | Options to configure the MediaPipe Semantic Decision Maker Task.Note: On Web, baseOptions.delegate defaults to 'GPU' (WebGPU). .litertlm containers with external weights (such as EmbeddingGemma 2 and Gemma 4) require WebGPU on Web and do not support delegate: 'CPU'. Setting baseOptions.delegate to 'CPU' on Web is only supported for .task or inline .tflite models (such as Laya). |
| ScoreQuestion | Question configuration for an Ordinal Score evaluation. |
| ScoreResult | Result of evaluating an Score. |
Type Aliases
| Type Alias | Description |
|---|---|
| ClassifierQuestionType | Supported question types in a ClassifierSchema. |
| ClassifierResult | Record mapping each question id in a ClassifierSchema to its ClassifierDecision. |
ClassifierQuestionType
Supported question types in a ClassifierSchema.
Signature:
export declare type ClassifierQuestionType = "binary" | "categorical" | "ordinal" | "boolean" | "choice" | "score";
ClassifierResult
Record mapping each question id in a ClassifierSchema to its ClassifierDecision.
Signature:
export declare type ClassifierResult = Record<string, ClassifierDecision>;