aip_sdk.PlanLockViolationError
aip_sdk.PlanLockViolationError(message: str, *, keys: list[str] | None = None, metrics_outside_plan: list[str] | None = None, status_code: int | None = None, body: dict[str, Any] | None = None)
A run supplied an evaluation key the project's test plan owns, and the plan locks it (422).
The refusal is about the key being present, not its value: sending exactly what the plan holds
is refused too. Omit the argument to score with the plan's configuration. Only a run that can
back a report is governed — a dataset-probe metric_invoke or a trace_metric_invoke run
is never refused this way.
Attributes
keyslist[str]: The refused keys as the platform names them.metrics,metric_configsandmetric_config_refsare therunarguments of the same name;thresholdsis a value only a plan supplies, which this SDK has no argument for.metrics_outside_planlist[str]: On a re-scoring run that may pick metrics, the ones it named that the plan does not carry. Empty for every other refusal.
aip_sdk.PlanLockViolationError.keys
aip_sdk.PlanLockViolationError.keys: list[str] = keys or []
No docstring is defined in the source.
aip_sdk.PlanLockViolationError.metrics_outside_plan
aip_sdk.PlanLockViolationError.metrics_outside_plan: list[str] = metrics_outside_plan or []
No docstring is defined in the source.
Inherited members
Inherited from libs/aip-sdk/src/aip_sdk/exceptions.py
aip_sdk.PlanLockViolationError.body
aip_sdk.PlanLockViolationError.body: dict[str, Any] = body or {}
No docstring is defined in the source.
Inherited from libs/aip-sdk/src/aip_sdk/exceptions.py
aip_sdk.PlanLockViolationError.correlation_id
aip_sdk.PlanLockViolationError.correlation_id = current_correlation_id()
No docstring is defined in the source.
Inherited from libs/aip-sdk/src/aip_sdk/exceptions.py
aip_sdk.PlanLockViolationError.request_id
aip_sdk.PlanLockViolationError.request_id = current_request_id()
No docstring is defined in the source.
Inherited from libs/aip-sdk/src/aip_sdk/exceptions.py
aip_sdk.PlanLockViolationError.status_code
aip_sdk.PlanLockViolationError.status_code = status_code
No docstring is defined in the source.
Inherited from libs/aip-sdk/src/aip_sdk/exceptions.py
aip_sdk.PlanLockViolationError.validation_errors
aip_sdk.PlanLockViolationError.validation_errors: list[dict[str, Any]]
RFC 9457 problem+json validation_errors array, or [] when absent.