Skip to content

Commit 6e12d29

Browse files
committed
Fixing ruff issues
1 parent ccad7a3 commit 6e12d29

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

scenarios/evaluate/Supported_Evaluation_Metrics/Agent_Evaluation/AI_Judge_Evaluators_Response_Completeness.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@
152152
"outputs": [],
153153
"source": [
154154
"import json\n",
155+
"from pathlib import Path\n",
155156
"\n",
156157
"data = [\n",
157158
" {\n",
@@ -174,7 +175,7 @@
174175
"\n",
175176
"file_path = \"response_completeness_data.jsonl\"\n",
176177
"\n",
177-
"with open(file_path, \"w\") as file:\n",
178+
"with Path.open(file_path, \"w\") as file:\n",
178179
" for line in data:\n",
179180
" file.write(json.dumps(line) + \"\\n\")"
180181
]
@@ -217,7 +218,7 @@
217218
],
218219
"metadata": {
219220
"kernelspec": {
220-
"display_name": "test_agent_evaluator_prp",
221+
"display_name": "test_agent_eval_sample",
221222
"language": "python",
222223
"name": "python3"
223224
},

scenarios/evaluate/Supported_Evaluation_Metrics/Agent_Evaluation/Evaluate_Azure_AI_Agent_Quality.ipynb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,6 @@
289289
" \"resource_group_name\": os.environ[\"RESOURCE_GROUP_NAME\"],\n",
290290
"}\n",
291291
"\n",
292-
"\n",
293-
"# measures how well an agent identifies a user’s request, including how well it scopes the users intent, asks clarifying questions, and reminds end users of its scope of capabilities\n",
294292
"intent_resolution = IntentResolutionEvaluator(model_config=model_config)\n",
295293
"\n",
296294
"tool_call_accuracy = ToolCallAccuracyEvaluator(model_config=model_config)\n",

0 commit comments

Comments
 (0)