You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vertexai/_genai/types/common.py
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2479,6 +2479,10 @@ class EvaluationRunMetric(_common.BaseModel):
2479
2479
metric: Optional[str] = Field(
2480
2480
default=None, description="""The name of the metric."""
2481
2481
)
2482
+
metric_resource_name: Optional[str] = Field(
2483
+
default=None,
2484
+
description="""The resource name of the metric definition. Example: projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric_id}""",
2485
+
)
2482
2486
metric_config: Optional[UnifiedMetric] = Field(
2483
2487
default=None, description="""The unified metric used for evaluation run."""
2484
2488
)
@@ -2490,6 +2494,9 @@ class EvaluationRunMetricDict(TypedDict, total=False):
2490
2494
metric: Optional[str]
2491
2495
"""The name of the metric."""
2492
2496
2497
+
metric_resource_name: Optional[str]
2498
+
"""The resource name of the metric definition. Example: projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric_id}"""
2499
+
2493
2500
metric_config: Optional[UnifiedMetricDict]
2494
2501
"""The unified metric used for evaluation run."""
2495
2502
@@ -4439,6 +4446,10 @@ class Metric(_common.BaseModel):
4439
4446
default=None,
4440
4447
description="""Optional steering instruction parameters for the automated predefined metric.""",
4441
4448
)
4449
+
metric_resource_name: Optional[str] = Field(
4450
+
default=None,
4451
+
description="""The resource name of the metric definition. Example: projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric_id}""",
4452
+
)
4442
4453
4443
4454
# Allow extra fields to support metric-specific config fields.
4444
4455
model_config = ConfigDict(extra="allow")
@@ -4643,6 +4654,9 @@ class MetricDict(TypedDict, total=False):
4643
4654
metric_spec_parameters: Optional[dict[str, Any]]
4644
4655
"""Optional steering instruction parameters for the automated predefined metric."""
4645
4656
4657
+
metric_resource_name: Optional[str]
4658
+
"""The resource name of the metric definition. Example: projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric_id}"""
0 commit comments