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
class _EvaluateInstancesRequestParameters(_common.BaseModel):
4644
4679
"""Parameters for evaluating instances."""
4645
4680
@@ -5334,6 +5369,14 @@ class _GenerateInstanceRubricsRequest(_common.BaseModel):
5334
5369
default=None,
5335
5370
description="""The prompt to generate rubrics from. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.""",
5336
5371
)
5372
+
metric_resource_name: Optional[str] = Field(
5373
+
default=None,
5374
+
description="""The resource name of a registered metric. Rubric generation using
5375
+
predefined metric spec or LLMBasedMetricSpec is supported. If this field is
5376
+
set, the configuration provided in this field is used for rubric
5377
+
generation. The `predefined_rubric_generation_spec` and
5378
+
`rubric_generation_spec` fields will be ignored.""",
description="""Specification for using the rubric generation configs of a pre-defined
@@ -5356,6 +5399,13 @@ class _GenerateInstanceRubricsRequestDict(TypedDict, total=False):
5356
5399
contents: Optional[list[genai_types.ContentDict]]
5357
5400
"""The prompt to generate rubrics from. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request."""
5358
5401
5402
+
metric_resource_name: Optional[str]
5403
+
"""The resource name of a registered metric. Rubric generation using
5404
+
predefined metric spec or LLMBasedMetricSpec is supported. If this field is
5405
+
set, the configuration provided in this field is used for rubric
5406
+
generation. The `predefined_rubric_generation_spec` and
5407
+
`rubric_generation_spec` fields will be ignored."""
0 commit comments