aip_sdk.WorkspaceMetricConfigDefaultSpec
aip_sdk.WorkspaceMetricConfigDefaultSpec(metric: MetricRef, config_name: str, params: dict[str, Any] | None = None, prompts: dict[str, PromptConfig] | None = None, base_version: str | None = None)
One metric's new default configuration, for
publish_workspace_metric_config_defaults().
Attributes
metricMetricRef: Which metric implementation this default parameterizes — itsnameidentifies the lineage published into, and must appear at most once per call.config_namestr: Descriptive name for this configuration.paramsdict[str, Any] | None: Non-prompt parameters for the metric.promptsdict[str, PromptConfig] | None: Named Jinja2 prompt templates, keyed by slot name.base_versionstr | None: Optional optimistic-concurrency precondition — theconfig_versionlast read for this metric vialist_workspace_metric_config_defaults(). If the lineage has moved past it by the time the server processes this item, the whole call raisesStaleWorkspaceMetricConfigDefaultBaseVersionErrorinstead of inserting another version. This is what makes a transport-level retry of an identical request safe — seepublish_workspace_metric_config_defaults().
aip_sdk.WorkspaceMetricConfigDefaultSpec.base_version
aip_sdk.WorkspaceMetricConfigDefaultSpec.base_version: str | None = None
No docstring is defined in the source.
aip_sdk.WorkspaceMetricConfigDefaultSpec.config_name
aip_sdk.WorkspaceMetricConfigDefaultSpec.config_name: str
No docstring is defined in the source.
aip_sdk.WorkspaceMetricConfigDefaultSpec.metric
aip_sdk.WorkspaceMetricConfigDefaultSpec.metric: MetricRef
No docstring is defined in the source.
aip_sdk.WorkspaceMetricConfigDefaultSpec.params
aip_sdk.WorkspaceMetricConfigDefaultSpec.params: dict[str, Any] | None = None
No docstring is defined in the source.
aip_sdk.WorkspaceMetricConfigDefaultSpec.prompts
aip_sdk.WorkspaceMetricConfigDefaultSpec.prompts: dict[str, PromptConfig] | None = None
No docstring is defined in the source.