Skip to main content

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_name str: Configuration name.
  • config_version str: Version of the named configuration.
  • workspace_id str: The owning workspace.
  • client APIClient | None: Optional pre-configured API client.

Returns

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")