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
@@ -2217,13 +2217,13 @@ class EvaluationRunMetric(_common.BaseModel):
2217
2217
metric: Optional[str] = Field(
2218
2218
default=None, description="""The name of the metric."""
2219
2219
)
2220
-
metric_config: Optional[UnifiedMetric] = Field(
2221
-
default=None, description="""The unified metric used for evaluation run."""
2222
-
)
2223
2220
metric_resource_name: Optional[str] = Field(
2224
2221
default=None,
2225
2222
description="""The resource name of the metric definition. Example: projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric_id}""",
2226
2223
)
2224
+
metric_config: Optional[UnifiedMetric] = Field(
2225
+
default=None, description="""The unified metric used for evaluation run."""
2226
+
)
2227
2227
2228
2228
2229
2229
class EvaluationRunMetricDict(TypedDict, total=False):
@@ -2232,12 +2232,12 @@ class EvaluationRunMetricDict(TypedDict, total=False):
2232
2232
metric: Optional[str]
2233
2233
"""The name of the metric."""
2234
2234
2235
-
metric_config: Optional[UnifiedMetricDict]
2236
-
"""The unified metric used for evaluation run."""
2237
-
2238
2235
metric_resource_name: Optional[str]
2239
2236
"""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."""
5150
5150
5151
-
config: Optional[RubricGenerationConfigDict]
5152
-
""""""
5153
-
5154
5151
metric_resource_name: Optional[str]
5155
5152
"""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