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
[evaluation] Name both SDK and asset aliases in TaskNavigationEfficiency validator errors (#48048)
* [evaluation] Name both SDK and asset aliases in TaskNavigationEfficiency validator errors
TaskNavigationEfficiencyValidator accepts either the SDK input names (response/ground_truth) or the azureml-assets names (actions/expected_actions), but its user-facing validation messages referenced only response/ground_truth. A caller who correctly supplied actions/expected_actions could get an error naming ground_truth/response - parameters they never used and that the eval service does not accept as data-mapping keys - which was confusing.
Update every validation message that names response/ground_truth to also cite the accepted alias, e.g. 'ground_truth' (also accepted as 'expected_actions') and 'response' (also accepted as 'actions'). Message text only; no changes to categories, logic, or control flow.
* [evaluation] Lead TaskNavigationEfficiency validator errors with azureml-assets names
Swap the alias order in every TaskNavigationEfficiencyValidator error message so the azureml-assets input names ('actions'/'expected_actions') are primary and the SDK names ('response'/'ground_truth') are the parenthetical alias. Update the CHANGELOG entry to match. Message text only; no logic, category, or control-flow changes.
* Add test
Copy file name to clipboardExpand all lines: sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_common/_validators/_task_navigation_efficiency_validator.py
message="When 'ground_truth' is a tuple, it must contain exactly 2 elements: (tool_names_list, parameters_dict).",
158
+
message="When 'expected_actions' (also accepted as 'ground_truth') is a tuple, it must contain exactly 2 elements: (tool_names_list, parameters_dict).",
message=f"Parameters for tool '{tool_name}' in 'ground_truth' must be a dictionary, got {type(params).__name__}.",
205
+
message=f"Parameters for tool '{tool_name}' in 'expected_actions' (also accepted as 'ground_truth') must be a dictionary, got {type(params).__name__}.",
0 commit comments