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
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -2228,13 +2228,13 @@ class EvaluationRunMetric(_common.BaseModel):
2228
2228
metric: Optional[str] = Field(
2229
2229
default=None, description="""The name of the metric."""
2230
2230
)
2231
-
metric_config: Optional[UnifiedMetric] = Field(
2232
-
default=None, description="""The unified metric used for evaluation run."""
2233
-
)
2234
2231
metric_resource_name: Optional[str] = Field(
2235
2232
default=None,
2236
2233
description="""The resource name of the metric definition. Example: projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric_id}""",
2237
2234
)
2235
+
metric_config: Optional[UnifiedMetric] = Field(
2236
+
default=None, description="""The unified metric used for evaluation run."""
2237
+
)
2238
2238
2239
2239
2240
2240
class EvaluationRunMetricDict(TypedDict, total=False):
@@ -2243,12 +2243,12 @@ class EvaluationRunMetricDict(TypedDict, total=False):
2243
2243
metric: Optional[str]
2244
2244
"""The name of the metric."""
2245
2245
2246
-
metric_config: Optional[UnifiedMetricDict]
2247
-
"""The unified metric used for evaluation run."""
2248
-
2249
2246
metric_resource_name: Optional[str]
2250
2247
"""The resource name of the metric definition. Example: projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric_id}"""
description="""Registered metric resource name. If this field is set, the configuration provided in this field is used for rubric generation. The `predefined_rubric_generation_spec` and `rubric_generation_spec` fields will be ignored.""",
"""Specification for how the rubrics should be generated."""
5188
5188
5189
-
config: Optional[RubricGenerationConfigDict]
5190
-
""""""
5191
-
5192
5189
metric_resource_name: Optional[str]
5193
5190
"""Registered metric resource name. If this field is set, the configuration provided in this field is used for rubric generation. The `predefined_rubric_generation_spec` and `rubric_generation_spec` fields will be ignored."""
0 commit comments