aip_sdk.get_dataset_metric_availability
aip_sdk.get_dataset_metric_availability(dataset_id: str, version_id: str, *, metrics: Iterable[str] | None = None, has_connection: bool = True, client: APIClient | None = None) -> DatasetVersionMetricAvailability
Report which dataset (row-level) metrics can score a dataset version, and why the rest cannot.
Uses the same gate as POST /runs, so an available metric is one the run gate accepts.
For agent-trace datasets, use aip.get_partition_metric_availability() instead.
Parameters
dataset_idstr: Dataset ID.version_idstr: Dataset version ID to judge metrics against.metricsIterable[str] | None: Restrict the report to these metric names. An unmatched name is reported unavailable (OP_NOT_FOUND) rather than omitted.Nonereports every metric visible in the dataset's workspace.has_connectionbool: Whether inference will fill the produced columns (sut_response,retrieved_context) before scoring. Defaults toTrue. PassFalseto judge the version's at-rest columns alone.clientAPIClient | None: Optional API client.
Returns
DatasetVersionMetricAvailability: The per-metric verdicts; readavailable_metricsfor just the names that can run.
Raises
InvalidArgumentError: Ifmetricsis given but empty, or contains a blank name.AuthError: If credentials are missing or invalid.NotFoundError: If the dataset or dataset version does not exist, or the dataset belongs to a workspace the caller is not a member of.UnprocessableEntityError: If the dataset holds agent traces.ResponseParseError: If the platform's response does not match this SDK version.