mp.tasks.decision.DecisionMaker

MediaPipe Decision task.

Methods

close

View source

Releases resources associated with the task.

create_from_model_path

View source

Creates a Decision task from a model file path.

create_from_options

View source

Creates a Decision task from options.

evaluate_batch

View source

Evaluates N independent contexts against M questions in a batch.

evaluate_boolean

View source

Evaluates a Boolean against input text.

evaluate_boolean_batch

View source

Evaluates a Boolean against a batch of input texts.

evaluate_candidates

View source

Evaluates 1 shared prefix + N candidates against M questions.

evaluate_choice

View source

Evaluates a Choice against input text.

evaluate_choice_batch

View source

Evaluates a Choice against a batch of input texts.

evaluate_score

View source

Evaluates an Score rubric against input text.

evaluate_score_batch

View source

Evaluates an Score rubric against a batch of input texts.

prewarm_choice

View source

Prewarms the static prompt prefix and KV cache for a choice question.

__enter__

View source

__exit__

View source