IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Python function

eager_usage_validator

eager_usage_validator()​

max.pipelines.modeling.eager_validation.eager_usage_validator(mode, phase)

source

Builds the validator guarding phase, per the configured mode.

Parameters:

  • mode (EagerValidatorMode) – The configured runtime.eager_usage_validator mode.
  • phase (Literal['initialization', 'execution']) – Which part of the pipeline’s life the scope covers.

Returns:

A validator, disabled when mode excludes phase.

Return type:

EagerUsageValidator