Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR replaces the Azure AI Evaluation SDK with the Azure AI Projects SDK in the self-reflection evaluation sample, transitioning from the GroundednessEvaluator to the OpenAI evals API for groundedness evaluation.
Key Changes:
- Migrated from
azure-ai-evaluationSDK toazure-ai-projectsSDK with OpenAI client integration - Replaced
GroundednessEvaluatorwith direct OpenAI evals API calls (client.evals.create()andclient.evals.runs.create()) - Updated environment variables from
AZURE_OPENAI_ENDPOINT/AZURE_OPENAI_API_KEYtoAZURE_AI_PROJECT_ENDPOINT
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 9 comments.
| File | Description |
|---|---|
| python/samples/getting_started/evaluation/self_reflection/self_reflection.py | Replaced evaluation SDK with AI Projects SDK; refactored evaluation logic to use OpenAI evals API with polling mechanism |
| python/samples/getting_started/evaluation/self_reflection/README.md | Updated documentation to reflect JSONL format, new SDK dependency, and new environment variable requirements |
| python/samples/getting_started/evaluation/self_reflection/.env.example | Updated environment variable template from OpenAI endpoint/key to AI Project endpoint |
Comments suppressed due to low confidence (1)
python/samples/getting_started/evaluation/self_reflection/self_reflection.py:189
- Testing for None should use the 'is' operator.
if eval_run_output_items == None:
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
python/samples/getting_started/evaluation/self_reflection/self_reflection.py
Show resolved
Hide resolved
python/samples/getting_started/evaluation/self_reflection/self_reflection.py
Outdated
Show resolved
Hide resolved
python/samples/getting_started/evaluation/self_reflection/self_reflection.py
Outdated
Show resolved
Hide resolved
python/samples/getting_started/evaluation/self_reflection/self_reflection.py
Outdated
Show resolved
Hide resolved
python/samples/getting_started/evaluation/self_reflection/self_reflection.py
Outdated
Show resolved
Hide resolved
python/samples/getting_started/evaluation/self_reflection/self_reflection.py
Outdated
Show resolved
Hide resolved
python/samples/getting_started/evaluation/self_reflection/self_reflection.py
Show resolved
Hide resolved
python/samples/getting_started/evaluation/self_reflection/self_reflection.py
Outdated
Show resolved
Hide resolved
python/samples/getting_started/evaluation/self_reflection/self_reflection.py
Show resolved
Hide resolved
python/samples/getting_started/evaluation/self_reflection/self_reflection.py
Outdated
Show resolved
Hide resolved
victordibia
approved these changes
Dec 2, 2025
eavanvalkenburg
approved these changes
Dec 2, 2025
arisng
pushed a commit
to arisng/agent-framework
that referenced
this pull request
Feb 2, 2026
…icrosoft#2540) * Replace Eval SDK with AI Projects SDK * Update per PR review suggestions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Description
Contribution Checklist