DecisionMakerOptions interface

Options to configure the MediaPipe Decision Maker Task.

Signature:

export declare interface DecisionMakerOptions extends TaskRunnerOptions 

Extends: TaskRunnerOptions

Properties

Property Type Description
cacheDir string | undefined Optional directory path in the WASM virtual filesystem for caching compiled weights. Defaults to '/tmp'.
contextWindow number | undefined Maximum context window size in tokens. Defaults to 2048.
modelAssetSize number | undefined Total byte size of the model asset when streaming via ReadableStreamDefaultReader.
schema Record<string, string> | string | undefined Optional schema mapping field names to descriptions for structured DecisionContext inputs.
scoringMode ScoringMode | undefined Default candidate scoring strategy for multiple-choice questions. Defaults to ScoringMode.SCORING_AUTO.
systemInstruction string | undefined Optional system instruction prepended to the evaluation prompt.

DecisionMakerOptions.cacheDir

Optional directory path in the WASM virtual filesystem for caching compiled weights. Defaults to '/tmp'.

Signature:

cacheDir?: string;

DecisionMakerOptions.contextWindow

Maximum context window size in tokens. Defaults to 2048.

Signature:

contextWindow?: number;

DecisionMakerOptions.modelAssetSize

Total byte size of the model asset when streaming via ReadableStreamDefaultReader.

Signature:

modelAssetSize?: number;

DecisionMakerOptions.schema

Optional schema mapping field names to descriptions for structured DecisionContext inputs.

Signature:

schema?: Record<string, string> | string;

DecisionMakerOptions.scoringMode

Default candidate scoring strategy for multiple-choice questions. Defaults to ScoringMode.SCORING_AUTO.

Signature:

scoringMode?: ScoringMode;

DecisionMakerOptions.systemInstruction

Optional system instruction prepended to the evaluation prompt.

Signature:

systemInstruction?: string;