Skip to content

Python: Add incomplete details reason to AzureAIAgent error message #12796

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2025

Conversation

moonbox3
Copy link
Collaborator

Motivation and Context

When errors occur processing a run of an AzureAIAgent, we surface the error message but not the incomplete_details reason if it exists.

Description

This PR adds handling for the incomplete details reason, if it exists, so it can be passed back via the error message.

Contribution Checklist

@moonbox3 moonbox3 self-assigned this Jul 25, 2025
@moonbox3 moonbox3 requested a review from a team as a code owner July 25, 2025 05:38
@moonbox3 moonbox3 added python Pull requests for the Python Semantic Kernel agents documentation labels Jul 25, 2025
@moonbox3
Copy link
Collaborator Author

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
agents/azure_ai
   agent_thread_actions.py41619353%163, 165, 202–208, 244–245, 248–252, 254–256, 260, 263–265, 274, 279–280, 342, 346, 351, 354, 357–358, 362, 365, 368–369, 373, 376, 379–380, 384–385, 389–390, 394–395, 495, 497, 537–538, 560, 562–564, 566–568, 570–571, 573–578, 580–588, 592–593, 596–599, 603, 606–607, 610–611, 614, 617, 620–621, 624–628, 630–631, 635, 638–639, 646–647, 652, 656–657, 659–660, 667, 669, 673, 676–681, 683–685, 690–691, 694–695, 698–700, 710–711, 718, 720, 724, 726–727, 731–740, 742–750, 801, 804, 838–839, 846–850, 910, 915–920, 948–951, 955, 960–961, 965, 982–984, 988–989, 1004–1005, 1043, 1084–1087, 1089–1090, 1094, 1098–1099, 1104
TOTAL26701460082% 

Python Unit Test Overview

Tests Skipped Failures Errors Time
3659 22 💤 0 ❌ 0 🔥 2m 0s ⏱️

@moonbox3 moonbox3 enabled auto-merge August 4, 2025 05:29
@moonbox3 moonbox3 added this pull request to the merge queue Aug 4, 2025
Merged via the queue into microsoft:main with commit e5972e2 Aug 4, 2025
34 checks passed
@moonbox3 moonbox3 deleted the azure-ai-agent-error-handling branch August 4, 2025 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agents documentation python Pull requests for the Python Semantic Kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python: New Feature: Surface thread run incomplete_details for Safety Evaluation in AzureAIAgent Failures
3 participants