Python: Add support for Azure AI Agent Service#10414
Merged
moonbox3 merged 13 commits intomicrosoft:mainfrom Feb 7, 2025
Merged
Python: Add support for Azure AI Agent Service#10414moonbox3 merged 13 commits intomicrosoft:mainfrom
moonbox3 merged 13 commits intomicrosoft:mainfrom
Conversation
Member
Python Test Coverage Report •
Python Unit Test Overview
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TaoChenOSU
reviewed
Feb 5, 2025
python/samples/getting_started_with_agents/azure_ai_agent/step1_azure_ai_agent.py
Show resolved
Hide resolved
TaoChenOSU
reviewed
Feb 5, 2025
TaoChenOSU
reviewed
Feb 5, 2025
TaoChenOSU
reviewed
Feb 6, 2025
Contributor
|
I noticed when I worked on the Bedrock agents that there were not integration tests for all existing agents that we support. Could you create a work item for add integration tests for Azure AI agents if you do not plan to add integration tests right after this PR? |
Contributor
|
LGTM. Will approve once the merge conflict is addressed. |
alliscode
approved these changes
Feb 6, 2025
TaoChenOSU
approved these changes
Feb 7, 2025
jcruzmot-te
pushed a commit
to thousandeyes/aia-semantic-kernel
that referenced
this pull request
Sep 15, 2025
### Motivation and Context Azure AI Agents are a managed offering, and are built on top of the OpenAI assistant v2 APIs. Until now we have not had support for them in SK Python. This PR adds support for Azure AI Agents in SK Python. The current abstractions allow one to run managed Azure AI Agents using SK constructs as is demonstrated via the getting started samples and/or the `azure_ai_agent` concept code samples. The developer must first follow the required Azure AI Agent deployment steps, and bring their connection string as well as their model deployment name. <!-- 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 Add support for Azure AI Agent Service in SK - Add sample code - Add unit tests - Restructures the `getting_started_with_agents` samples to move the respective agent code into folders like `chat_completion`, `azure_ai_agent`, etc. Updates the README as well. - Closes microsoft#10187 **TODO**: add more test coverage either in this PR, or a subsequent one. <!-- 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 - [X] I didn't break anyone 😄
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.
Motivation and Context
Azure AI Agents are a managed offering, and are built on top of the OpenAI assistant v2 APIs. Until now we have not had support for them in SK Python. This PR adds support for Azure AI Agents in SK Python. The current abstractions allow one to run managed Azure AI Agents using SK constructs as is demonstrated via the getting started samples and/or the
azure_ai_agentconcept code samples. The developer must first follow the required Azure AI Agent deployment steps, and bring their connection string as well as their model deployment name.Description
Add support for Azure AI Agent Service in SK
getting_started_with_agentssamples to move the respective agent code into folders likechat_completion,azure_ai_agent, etc. Updates the README as well.TODO: add more test coverage either in this PR, or a subsequent one.
Contribution Checklist