Skip to content

Python: Update the AzureAIAgent packages, types, and APIs based on Azure SDK's new code#12084

Merged
moonbox3 merged 25 commits intomicrosoft:mainfrom
moonbox3:py-update-azureaiagent
May 19, 2025
Merged

Python: Update the AzureAIAgent packages, types, and APIs based on Azure SDK's new code#12084
moonbox3 merged 25 commits intomicrosoft:mainfrom
moonbox3:py-update-azureaiagent

Conversation

@moonbox3
Copy link
Collaborator

@moonbox3 moonbox3 commented May 15, 2025

Motivation and Context

The Azure AI Agent Service is moving to GA soon. As part of that, they've made several changes in the underlying APIs, which require the use of new packages, updated type imports and some new underlying APIs. This PR updates the AzureAIAgent to use the latest Azure SDK's new code.

  • The client's connection string has been replaced with an endpoint.
  • The AzureAIAgentSettings's model_deployment_name was updated to deployment_name.
  • Tools are now imported from from azure.ai.agents.models instead of from azure.ai.projects.models.
  • Declarative spec handling for AzureAIAgent was updated based on the new APIs.
  • Unit tests were updated.

Description

Update the AzureAIAgent related code, samples and tests based on the Azure SDK's latest APIs.

Contribution Checklist

@moonbox3 moonbox3 self-assigned this May 15, 2025
@moonbox3 moonbox3 requested a review from a team as a code owner May 15, 2025 11:07
@moonbox3 moonbox3 added PR: breaking change Pull requests that introduce breaking changes agents labels May 15, 2025
@markwallace-microsoft markwallace-microsoft added python Pull requests for the Python Semantic Kernel documentation labels May 15, 2025
@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented May 15, 2025

Python Unit Test Overview

Tests Skipped Failures Errors Time
3593 18 💤 0 ❌ 0 🔥 1m 44s ⏱️

@moonbox3 moonbox3 added this pull request to the merge queue May 16, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 16, 2025
Copy link
Collaborator Author

@moonbox3 moonbox3 left a comment

Choose a reason for hiding this comment

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

Waiting for a response from the Azure SDK team about some updates related to this. Holding off for now.

Copy link
Member

@eavanvalkenburg eavanvalkenburg left a comment

Choose a reason for hiding this comment

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

small comment...

@moonbox3 moonbox3 added this pull request to the merge queue May 19, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 19, 2025
@moonbox3 moonbox3 enabled auto-merge May 19, 2025 23:14
@moonbox3 moonbox3 added this pull request to the merge queue May 19, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 19, 2025
@moonbox3 moonbox3 added this pull request to the merge queue May 19, 2025
Merged via the queue into microsoft:main with commit c64e51c May 19, 2025
28 checks passed
@moonbox3 moonbox3 deleted the py-update-azureaiagent branch May 19, 2025 23:50
@github-project-automation github-project-automation bot moved this to Sprint: Done in Semantic Kernel May 19, 2025
jcruzmot-te pushed a commit to thousandeyes/aia-semantic-kernel that referenced this pull request Sep 15, 2025
…ure SDK's new code (microsoft#12084)

### Motivation and Context

The Azure AI Agent Service is moving to GA soon. As part of that,
they've made several changes in the underlying APIs, which require the
use of new packages, updated type imports and some new underlying APIs.
This PR updates the AzureAIAgent to use the latest Azure SDK's new code.

- The client's connection string has been replaced with an endpoint.
- The `AzureAIAgentSettings`'s `model_deployment_name` was updated to
`deployment_name`.
- Tools are now imported from `from azure.ai.agents.models` instead of
`from azure.ai.projects.models`.
- Declarative spec handling for AzureAIAgent was updated based on the
new APIs.
- Unit tests were updated.

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

Update the AzureAIAgent related code, samples and tests based on the
Azure SDK's latest APIs.
- Closes microsoft#12177 

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄

---------

Co-authored-by: Tao Chen <taochen@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents documentation PR: breaking change Pull requests that introduce breaking changes python Pull requests for the Python Semantic Kernel

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Python: Bug: Azure AI agent stuck in an infinite loop when tools not found

6 participants