Skip to content

Update agent error details#41092

Merged
jhakulin merged 2 commits intomainfrom
jhakulin/agent-error-detail
May 14, 2025
Merged

Update agent error details#41092
jhakulin merged 2 commits intomainfrom
jhakulin/agent-error-detail

Conversation

@jhakulin
Copy link

Update agent error detail

Copilot AI review requested due to automatic review settings May 14, 2025 16:46
@jhakulin jhakulin requested a review from dargilco as a code owner May 14, 2025 16:46
Copy link
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

This pull request updates error handling details for the agents API by introducing a new AgentErrorDetail model and replacing the previous AgentV1ErrorError model. Key changes include:

  • Replacing AgentV1ErrorError with the new AgentErrorDetail class in error payloads.
  • Updating references in related modules (init.py, apiview-properties.json) and the version/changelog.
  • Bumping the package version to reflect the update.

Reviewed Changes

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

Show a summary per file
File Description
sdk/ai/azure-ai-agents/tsp-location.yaml Updated commit hash for consistency.
sdk/ai/azure-ai-agents/azure/ai/agents/models/_models.py Introduced AgentErrorDetail and updated error field type in AgentV1Error.
sdk/ai/azure-ai-agents/azure/ai/agents/models/init.py Adjusted import and all to include AgentErrorDetail and remove AgentV1ErrorError.
sdk/ai/azure-ai-agents/azure/ai/agents/_version.py Bumped version to 1.0.0b3.
sdk/ai/azure-ai-agents/apiview-properties.json Updated API view properties to reflect changes in error model.
sdk/ai/azure-ai-agents/CHANGELOG.md Added changelog entry for the new release.
Comments suppressed due to low confidence (1)

sdk/ai/azure-ai-agents/azure/ai/agents/models/_models.py:205

  • [nitpick] Consider whether using 'type' as a field name might lead to confusion with the built-in 'type' function. If this naming aligns with our model specifications, it is acceptable; otherwise, consider an alternative like 'error_type'.
type: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])

@github-actions
Copy link

github-actions bot commented May 14, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

azure-ai-agents

@jhakulin jhakulin merged commit 0ccf1d5 into main May 14, 2025
20 checks passed
@jhakulin jhakulin deleted the jhakulin/agent-error-detail branch May 14, 2025 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants