Options to configure the MediaPipe Semantic Decision Maker Task.
Signature:
export declare interface DecisionMakerOptions extends TaskRunnerOptions
Extends: TaskRunnerOptions
Properties
| Property | Type | Description |
|---|---|---|
| backendType | number | Backend type (0=AUTO, 1=ENCODER, 2=DIRECT_LOGIT, 3=EMBEDDING). |
| companionPleAssetBuffer | Uint8Array | ReadableStreamDefaultReader | Optional buffer or stream reader for a companion per-layer embedder .tflite model. |
| companionPleAssetPath | string | Optional URL or path to a companion per-layer embedder .tflite model (e.g. *_per_layer_embedder.tflite for Gemma 4 E2B). |
| companionPleAssetSize | number | Optional byte length of companionPleAssetBuffer when provided as a ReadableStreamDefaultReader. |
| context | string | Optional session-level context prepended to question prompts. |
| expectedInputs | ClassifierExpectedInput[] | Optional expected input modalities and languages. |
| maxNumTokens | number | The maximum number of tokens in prompt context. |
| modelAssetSize | number | Optional byte length of baseOptions.modelAssetBuffer when provided as a ReadableStreamDefaultReader, enabling single-pass zero-copy streaming allocation directly in the Wasm heap. |
| questions | ClassifierQuestion[] | Optional session-bound questions for classify(). |
| schema | ClassifierSchema | Optional session-bound ClassifierSchema for classify(). |
DecisionMakerOptions.backendType
Backend type (0=AUTO, 1=ENCODER, 2=DIRECT_LOGIT, 3=EMBEDDING).
Signature:
backendType?: number;
DecisionMakerOptions.companionPleAssetBuffer
Optional buffer or stream reader for a companion per-layer embedder .tflite model.
Signature:
companionPleAssetBuffer?: Uint8Array | ReadableStreamDefaultReader;
DecisionMakerOptions.companionPleAssetPath
Optional URL or path to a companion per-layer embedder .tflite model (e.g. *_per_layer_embedder.tflite for Gemma 4 E2B).
Signature:
companionPleAssetPath?: string;
DecisionMakerOptions.companionPleAssetSize
Optional byte length of companionPleAssetBuffer when provided as a ReadableStreamDefaultReader.
Signature:
companionPleAssetSize?: number;
DecisionMakerOptions.context
Optional session-level context prepended to question prompts.
Signature:
context?: string;
DecisionMakerOptions.expectedInputs
Optional expected input modalities and languages.
Signature:
expectedInputs?: ClassifierExpectedInput[];
DecisionMakerOptions.maxNumTokens
The maximum number of tokens in prompt context.
Signature:
maxNumTokens?: number;
DecisionMakerOptions.modelAssetSize
Optional byte length of baseOptions.modelAssetBuffer when provided as a ReadableStreamDefaultReader, enabling single-pass zero-copy streaming allocation directly in the Wasm heap.
Signature:
modelAssetSize?: number;
DecisionMakerOptions.questions
Optional session-bound questions for classify().
Signature:
questions?: ClassifierQuestion[];
DecisionMakerOptions.schema
Optional session-bound ClassifierSchema for classify().
Signature:
schema?: ClassifierSchema;