Skip to content

Add properties in Evaluation Result - Custom Evaluator extra fields. #46077

Open
w-javed wants to merge 2 commits intomainfrom
waqasjaved02/aoai-properties-passthrough
Open

Add properties in Evaluation Result - Custom Evaluator extra fields. #46077
w-javed wants to merge 2 commits intomainfrom
waqasjaved02/aoai-properties-passthrough

Conversation

@w-javed
Copy link
Copy Markdown
Contributor

@w-javed w-javed commented Apr 2, 2026

No description provided.

@w-javed w-javed requested a review from a team as a code owner April 2, 2026 07:11
Copilot AI review requested due to automatic review settings April 2, 2026 07:11
@github-actions github-actions bot added the Evaluation Issues related to the client library for Azure AI Evaluation label Apr 2, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for passing through custom evaluator “extra fields” via a properties bag into the AOAI-style evaluation result objects produced by the evaluation results converter.

Changes:

  • Update _extract_metric_values to detect an outputs.<criteria>.properties dict and propagate it onto per-metric extracted values.
  • Update _create_result_object to include properties in the final AOAI result payload when present.
  • Add a unit test asserting properties is preserved and not flattened into the top-level result object.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluate/_evaluate.py Propagates a per-criteria properties dict into per-metric result objects during AOAI conversion.
sdk/evaluation/azure-ai-evaluation/tests/unittests/test_evaluate.py Adds coverage validating properties passthrough behavior for a custom evaluator result row.

…esults

Pass through evaluator properties dict in AOAI evaluation results.
When an evaluator returns a properties dict, it is included alongside
score, label, reason, threshold, and passed in the result object.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@w-javed w-javed force-pushed the waqasjaved02/aoai-properties-passthrough branch from 2fd8ce2 to c8f5958 Compare April 2, 2026 07:19
Update _extract_metric_values and _create_result_object docstrings
to document the new properties field and its expected dict type.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Evaluation Issues related to the client library for Azure AI Evaluation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants