Skip to content

Commit 8241eee

Browse files
committed
fix
1 parent b0ce73d commit 8241eee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/ai/azure-ai-projects/samples/evaluation/sample_evaluators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"required": ["query", "response"],
104104
},
105105
metrics= {
106-
"tool_selection": EvaluatorMetric(
106+
"score": EvaluatorMetric(
107107
type= EvaluatorMetricType.ORDINAL,
108108
desirable_direction= EvaluatorMetricDirection.INCREASE,
109109
min_value= 1,
@@ -201,13 +201,13 @@
201201
)
202202

203203
print("Getting list of builtin evaluator versions")
204-
evaluators: ItemPaged[EvaluatorVersion] = project_client.evaluators.list_latest_versions(type="builtin")
204+
evaluators = project_client.evaluators.list_latest_versions(type="builtin")
205205
print("List of builtin evaluator versions")
206206
for evaluator in evaluators:
207207
pprint(evaluator)
208208

209209
print("Getting list of custom evaluator versions")
210-
evaluators: ItemPaged[EvaluatorVersion] = project_client.evaluators.list_latest_versions(type="custom")
210+
evaluators = project_client.evaluators.list_latest_versions(type="custom")
211211
print("List of custom evaluator versions")
212212
for evaluator in evaluators:
213213
pprint(evaluator)

0 commit comments

Comments
 (0)