Align ToolCallAccuracy output schema to reason and harden skipped/properties handling#46355
Merged
m7md7sien merged 1 commit intomohessie/unify_output/tool_call_accuracyfrom Apr 16, 2026
Conversation
…ed properties handling Agent-Logs-Url: https://github.com/Azure/azure-sdk-for-python/sessions/89b3b528-f2ac-4284-88fb-c484d4c0cce1 Co-authored-by: m7md7sien <16615690+m7md7sien@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
m7md7sien
April 16, 2026 20:08
View session
m7md7sien
approved these changes
Apr 16, 2026
aa848fe
into
mohessie/unify_output/tool_call_accuracy
1 check passed
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.
This update aligns the Tool Call Accuracy evaluator with the PR-expected response contract by renaming
reasoningtoreasonacross evaluator output, prompt schema, and scoped tests. It also corrects not-applicable payload shape (properties: null) and prevents runtime issues when LLM returnsproperties: null.Contract updates in evaluator output
_return_not_applicable_resultnow emits:tool_call_accuracy_reason(wastool_call_accuracy_reasoning)tool_call_accuracy_properties: None(was{})ToolCallAccuracyEvaluatornow readsllm_output["reason"]and emits..._reason.Null-safe properties merge
Prompt/schema alignment
tool_call_accuracy.promptynow usesreason(notreasoning) in skipped example and output-key instructions.reasonappears beforescore, matching requested schema ordering.Scoped test updates for this PR surface
reasoning/_reasoningtoreason/_reason.