aip_sdk.get_metric_config
aip_sdk.get_metric_config(config_name: str, config_version: str, *, workspace_id: str, client: APIClient | None = None) -> MetricConfig
Fetch the config this (config_name, config_version) pin resolves to in workspace_id.
Parameters
config_namestr: Configuration name.config_versionstr: Version of the named configuration.workspace_idstr: The owning workspace.clientAPIClient | None: Optional pre-configured API client.
Returns
MetricConfigMetricConfig: the resolved config.
Raises
MetricConfigNotFoundError: If no config resolves at this key — including a deleted config, which never resolves once removed.AuthError: If credentials are missing or invalid.APIError: If the response is malformed.
Example:
config = aip.get_metric_config("rubric_prompt_a", "1.0.0", workspace_id="ws-abc123")