-
Couldn't load subscription status.
- Fork 623
.NET: Azure.AI.Agents Package Split + Initial Extensions #1657
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
.NET: Azure.AI.Agents Package Split + Initial Extensions #1657
Conversation
…/agent-framework into features/feature-foundry-agent/add-new-extensions
There was a problem hiding this 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 PR introduces a new Microsoft.Agents.AI.AzureAIAgents project that provides integration with Azure AI Agents services. The changes refactor existing extension methods to work with the new AgentsClient API while introducing a new AzureAIAgent implementation that wraps the chat client agent functionality.
Key changes include:
- Creation of the new
Microsoft.Agents.AI.AzureAIAgentsproject with support for Azure.AI.Agents integration - Refactoring of
AgentsClientExtensionsto simplify agent creation by extracting common logic and removing obsolete methods - Updates to package references and NuGet configuration to support the new Azure AI Agents SDK
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| dotnet/tests/OpenAIResponse.IntegrationTests/OpenAIResponseFixture.cs | Simplified object instantiation using target-typed new expression |
| dotnet/src/Microsoft.Agents.AI.AzureAIAgents/Microsoft.Agents.AI.AzureAIAgents.csproj | Added new project file defining the AzureAIAgents library configuration |
| dotnet/src/Microsoft.Agents.AI.AzureAIAgents/AzureAIAgent.cs | Introduced new AzureAIAgent class that wraps chat client functionality with Azure AI Agents integration |
| dotnet/src/Microsoft.Agents.AI.AzureAIAgents/AgentsClientExtensions.cs | Refactored extension methods to use new Azure AI Agents API, simplified agent creation logic |
| dotnet/src/Microsoft.Agents.AI.AzureAI/Microsoft.Agents.AI.AzureAI.csproj | Updated package references to align with new Azure AI Agents SDK |
| dotnet/nuget.config | Added Azure SDK PR feed for accessing preview Azure.AI.Agents package |
| dotnet/agent-framework-dotnet.slnx | Added the new AzureAIAgents project to the solution |
dotnet/src/Microsoft.Agents.AI.AzureAIAgents/AgentsClientExtensions.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Microsoft.Agents.AI.AzureAIAgents/AgentsClientExtensions.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
dotnet/src/Microsoft.Agents.AI.AzureAIAgents/AgentsClientExtensions.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Comments suppressed due to low confidence (1)
dotnet/src/Microsoft.Agents.AI.AzureAIAgents/AzureAIAgent.cs:1
- The
Modelproperty is being set redundantly. It's already set in the constructornew(model)on line 472, making this assignment unnecessary and potentially confusing.
// Copyright (c) Microsoft. All rights reserved.
dotnet/src/Microsoft.Agents.AI.AzureAIAgents/AgentsClientExtensions.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Comments suppressed due to low confidence (1)
dotnet/src/Microsoft.Agents.AI.AzureAIAgents/AzureAIAgentChatClient.cs:1
- The Model property is being set redundantly. The constructor of PromptAgentDefinition already takes the model parameter, so line 476 should be removed.
// Copyright (c) Microsoft. All rights reserved.
…gent/add-new-extensions
…ttps://github.com/rogerbarreto/agent-framework-public into features/feature-foundry-agent/add-new-extensions
…gent/add-new-extensions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (1)
dotnet/src/Microsoft.Agents.AI.AzureAIAgents/AzureAIAgentChatClient.cs:1
- The
Modelproperty is being set redundantly. It's already initialized in the constructor call on line 474 withnew(model). This assignment is unnecessary and should be removed.
// Copyright (c) Microsoft. All rights reserved.
…gent/add-new-extensions
…API with same name
…gent/add-new-extensions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (1)
dotnet/src/Microsoft.Agents.AI.AzureAIAgents/AzureAIAgentChatClient.cs:1
- The Model property is redundantly set here. It's already set in the constructor parameter of PromptAgentDefinition at line 474. Remove this line to avoid duplication.
// Copyright (c) Microsoft. All rights reserved.
…ttps://github.com/rogerbarreto/agent-framework-public into features/feature-foundry-agent/add-new-extensions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 14 out of 14 changed files in this pull request and generated 8 comments.
dotnet/src/Microsoft.Agents.AI.AzureAIAgents/AzureAIAgentChatClient.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Microsoft.Agents.AI.AzureAIAgents/AgentsClientExtensions.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Microsoft.Agents.AI.AzureAIAgents/AgentsClientExtensions.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Microsoft.Agents.AI.AzureAIAgents/AgentsClientExtensions.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Microsoft.Agents.AI.AzureAIAgents/AzureAIAgentChatClient.cs
Outdated
Show resolved
Hide resolved
dotnet/samples/GettingStarted/AgentProviders/Agent_With_AzureAIAgent/README.md
Show resolved
Hide resolved
dotnet/samples/GettingStarted/AgentProviders/Agent_With_AzureAIAgent/README.md
Show resolved
Hide resolved
dotnet/samples/GettingStarted/AgentProviders/Agent_With_AzureAIAgent/README.md
Show resolved
Hide resolved
Co-authored-by: Copilot <[email protected]>
…ttps://github.com/rogerbarreto/agent-framework-public into features/feature-foundry-agent/add-new-extensions
d148de4
into
microsoft:feature-foundry-agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 14 out of 14 changed files in this pull request and generated 4 comments.
| <PackageVersion Include="Azure.AI.Agents" Version="2.0.0-alpha.20251016.2" /> | ||
| <PackageVersion Include="Azure.AI.Agents.Persistent" Version="1.2.0-beta.7" /> | ||
| <PackageVersion Include="Azure.AI.Agents" Version="2.0.0-alpha.20251024.3" /> | ||
| <PackageVersion Include="Azure.AI.Agents.Persistent" Version="1.2.0-beta.6" /> |
Copilot
AI
Oct 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Azure.AI.Agents.Persistent package version is being downgraded from 1.2.0-beta.7 to 1.2.0-beta.6. Downgrading package versions can introduce bugs or remove fixes that were present in the newer version. This should be 1.2.0-beta.7 or higher unless there's a specific reason for the downgrade.
| <PackageVersion Include="Azure.AI.Agents.Persistent" Version="1.2.0-beta.6" /> | |
| <PackageVersion Include="Azure.AI.Agents.Persistent" Version="1.2.0-beta.7" /> |
No description provided.