.NET: Rename Microsoft.Agents.AI.AzureAI to Microsoft.Agents.AI.Foundry and consolidate FoundryMemory#5042
Merged
rogerbarreto merged 7 commits intoApr 2, 2026
Conversation
Replace obsolete CreateAIAgentAsync/GetAIAgentAsync calls with Agents.CreateAgentVersionAsync() + AsAIAgent(AgentVersion) in all AzureAI integration tests. - Rename AIProjectClient* test files to FoundryVersionedAgent* - Register AIFunction tools in PromptAgentDefinition.Tools for server-side visibility via AsOpenAIResponseTool() - Skip structured output tests (AzureAIProjectChatClient clears ResponseFormat for versioned agents) - Remove all [Obsolete] attributes and #pragma warning disable CS0618
Move all FoundryMemory source, unit tests, and integration tests into the Microsoft.Agents.AI.AzureAI package. Change namespace from Microsoft.Agents.AI.FoundryMemory to Microsoft.Agents.AI.AzureAI. - Add [Experimental] to FoundryMemoryProviderOptions and Scope - Rename internal AIProjectClientExtensions to MemoryStoreExtensions - Update AzureAI .csproj with Compliance.Abstractions, Redaction - Remove FoundryMemory from solution and release filter - Update sample to reference AzureAI instead of FoundryMemory - Delete old Microsoft.Agents.AI.FoundryMemory project and tests
…gration tests - Ensure memory store is created before testing memory operations - Add AZURE_AI_EMBEDDING_DEPLOYMENT_NAME config setting - Assert memories exist in store via SearchMemoriesAsync before cleanup - Verify scope isolation with direct memory store queries
- Rename AsAIAgentAsync_* to AsAIAgent_* (drop Async from method group) - Add _Rapi_ prefix to non-versioned (Responses API) tests - Add _Versioned_ prefix to versioned agent tests where needed - Fix RAPI tests: assert GetService<AIProjectClient>() is null - Fix Versioned tests: assert IsType<FoundryAgent> and GetService<AIProjectClient>() returns the client instance - Fix UserAgent header tests: proper HTTP handler routing - Fix ChatClient_UsesDefaultConversationIdAsync test setup - All 153 unit tests pass with 0 failures
Rename the project, namespace, folder, and all references from Microsoft.Agents.AI.AzureAI to Microsoft.Agents.AI.Foundry. Also rename Workflows.Declarative.AzureAI to .Foundry. - Rename src, unit test, integration test, and workflow folders - Update namespaces in all source and test .cs files - Update ProjectReferences in ~47 sample and test .csproj files - Update solution files (.slnx, .slnf) - Update sample using statements - Update READMEs, SKILL.md, ADRs in docs/ - Disable package validation baseline for renamed packages - Fix UTF-8 BOM encoding on all affected .cs files - AzureAI.Persistent left completely unchanged
46aebf4 to
c1332cf
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR completes the .NET-side rename from Microsoft.Agents.AI.AzureAI to Microsoft.Agents.AI.Foundry, consolidates the former Microsoft.Agents.AI.FoundryMemory package into the Foundry package, and migrates related tests/samples/docs to the new package + API patterns.
Changes:
- Renamed Foundry-related packages/projects/references and updated namespaces/usings across tests, samples, solution filters, and docs.
- Moved FoundryMemory implementation into
Microsoft.Agents.AI.Foundry/Memory/*and marked Memory surface as experimental. - Migrated integration tests from obsolete
CreateAIAgentAsyncusage toAgents.CreateAgentVersionAsync+AsAIAgent(AgentVersion)patterns, and updated conversation/session handling.
Reviewed changes
Copilot reviewed 108 out of 116 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| dotnet/tests/Microsoft.Agents.AI.Workflows.Declarative.IntegrationTests/Microsoft.Agents.AI.Workflows.Declarative.IntegrationTests.csproj | Switches declarative workflow integration tests to reference the Foundry declarative project. |
| dotnet/tests/Microsoft.Agents.AI.FoundryMemory.UnitTests/Microsoft.Agents.AI.FoundryMemory.UnitTests.csproj | Removes obsolete FoundryMemory unit test project file. |
| dotnet/tests/Microsoft.Agents.AI.FoundryMemory.IntegrationTests/Microsoft.Agents.AI.FoundryMemory.IntegrationTests.csproj | Removes obsolete FoundryMemory integration test project file. |
| dotnet/tests/Microsoft.Agents.AI.Foundry.UnitTests/TestDataUtil.cs | Updates unit test namespace to Foundry. |
| dotnet/tests/Microsoft.Agents.AI.Foundry.UnitTests/TestData/OpenAIDefaultResponse.json | Adds Responses API test JSON for unit tests. |
| dotnet/tests/Microsoft.Agents.AI.Foundry.UnitTests/TestData/AgentVersionResponse.json | Adds agent version JSON test data. |
| dotnet/tests/Microsoft.Agents.AI.Foundry.UnitTests/TestData/AgentResponse.json | Adds agent record JSON test data. |
| dotnet/tests/Microsoft.Agents.AI.Foundry.UnitTests/ProjectResponsesClientExtensionsTests.cs | Updates unit test namespace to Foundry. |
| dotnet/tests/Microsoft.Agents.AI.Foundry.UnitTests/Microsoft.Agents.AI.Foundry.UnitTests.csproj | Updates unit test project references/packages to target Foundry. |
| dotnet/tests/Microsoft.Agents.AI.Foundry.UnitTests/Memory/TestableAIProjectClient.cs | Moves test helper into Foundry unit test namespace layout. |
| dotnet/tests/Microsoft.Agents.AI.Foundry.UnitTests/Memory/FoundryMemoryProviderTests.cs | Moves memory unit tests into Foundry unit test namespace layout. |
| dotnet/tests/Microsoft.Agents.AI.Foundry.UnitTests/HttpHandlerAssert.cs | Updates unit test namespace to Foundry. |
| dotnet/tests/Microsoft.Agents.AI.Foundry.UnitTests/FoundryAgentTests.cs | Updates unit test namespace to Foundry. |
| dotnet/tests/Microsoft.Agents.AI.Foundry.UnitTests/FakeAuthenticationTokenProvider.cs | Updates unit test namespace to Foundry. |
| dotnet/tests/Microsoft.Agents.AI.Foundry.UnitTests/AzureAIProjectChatClientTests.cs | Updates unit tests to use AsAIAgent(...) and validates conversation ID propagation across runs. |
| dotnet/tests/Foundry.IntegrationTests/ResponsesAgentStructuredOutputRunTests.cs | Renames integration test namespace from AzureAI to Foundry. |
| dotnet/tests/Foundry.IntegrationTests/ResponsesAgentRunTests.cs | Renames integration test namespace from AzureAI to Foundry. |
| dotnet/tests/Foundry.IntegrationTests/ResponsesAgentRunStreamingTests.cs | Renames integration test namespace from AzureAI to Foundry. |
| dotnet/tests/Foundry.IntegrationTests/ResponsesAgentFixture.cs | Updates fixture to use Foundry naming and non-versioned Responses agent wiring. |
| dotnet/tests/Foundry.IntegrationTests/ResponsesAgentExtensionCreateTests.cs | Updates integration tests to create server conversations explicitly and use CreateSessionAsync(conversationId). |
| dotnet/tests/Foundry.IntegrationTests/ResponsesAgentChatClientRunTests.cs | Renames integration test namespace from AzureAI to Foundry. |
| dotnet/tests/Foundry.IntegrationTests/ResponsesAgentChatClientRunStreamingTests.cs | Renames integration test namespace from AzureAI to Foundry. |
| dotnet/tests/Foundry.IntegrationTests/Memory/FoundryMemoryProviderTests.cs | Migrates memory integration tests to Foundry package and adds store existence assertions. |
| dotnet/tests/Foundry.IntegrationTests/FoundryVersionedAgentStructuredOutputRunTests.cs | Migrates structured output integration tests to versioned-agent fixture + updated expectations/skips. |
| dotnet/tests/Foundry.IntegrationTests/FoundryVersionedAgentRunTests.cs | Renames/migrates run tests to versioned-agent fixture. |
| dotnet/tests/Foundry.IntegrationTests/FoundryVersionedAgentRunStreamingTests.cs | Renames/migrates streaming run tests to versioned-agent fixture. |
| dotnet/tests/Foundry.IntegrationTests/FoundryVersionedAgentFixture.cs | Implements versioned-agent creation via CreateAgentVersionAsync + AsAIAgent(AgentVersion). |
| dotnet/tests/Foundry.IntegrationTests/FoundryVersionedAgentCreateTests.cs | Migrates agent creation integration tests to versioned-agent patterns and native SDK definitions. |
| dotnet/tests/Foundry.IntegrationTests/FoundryVersionedAgentChatClientRunTests.cs | Adds ChatClientAgent conformance coverage for versioned-agent fixture (with explicit skip case). |
| dotnet/tests/Foundry.IntegrationTests/FoundryVersionedAgentChatClientRunStreamingTests.cs | Adds ChatClientAgent streaming conformance coverage for versioned-agent fixture (with explicit skip case). |
| dotnet/tests/Foundry.IntegrationTests/Foundry.IntegrationTests.csproj | Updates integration tests project reference from AzureAI to Foundry. |
| dotnet/tests/AzureAI.IntegrationTests/AIProjectClientChatClientAgentRunTests.cs | Removes obsolete AzureAI integration test file. |
| dotnet/tests/AzureAI.IntegrationTests/AIProjectClientChatClientAgentRunStreamingTests.cs | Removes obsolete AzureAI integration test file. |
| dotnet/src/Shared/IntegrationTests/TestSettings.cs | Adds embedding deployment environment variable constant for memory tests. |
| dotnet/src/Microsoft.Agents.AI.Workflows.Declarative.Foundry/Microsoft.Agents.AI.Workflows.Declarative.Foundry.csproj | Adds package-validation disablement and updates package metadata + Foundry references. |
| dotnet/src/Microsoft.Agents.AI.Workflows.Declarative.Foundry/CompatibilitySuppressions.xml | Updates suppressions’ assembly paths for the renamed Foundry declarative package. |
| dotnet/src/Microsoft.Agents.AI.Workflows.Declarative.Foundry/AzureAgentProvider.cs | Introduces a Foundry-backed ResponseAgentProvider for declarative workflows. |
| dotnet/src/Microsoft.Agents.AI.FoundryMemory/Microsoft.Agents.AI.FoundryMemory.csproj | Removes obsolete FoundryMemory project file after consolidation. |
| dotnet/src/Microsoft.Agents.AI.Foundry/RequestOptionsExtensions.cs | Adds RequestOptions helper + MEAI user-agent pipeline policy. |
| dotnet/src/Microsoft.Agents.AI.Foundry/ProjectResponsesClientExtensions.cs | Adds Responses client extension to disable stored output. |
| dotnet/src/Microsoft.Agents.AI.Foundry/Microsoft.Agents.AI.Foundry.csproj | Updates Foundry package dependencies/metadata and exposes internals to tests. |
| dotnet/src/Microsoft.Agents.AI.Foundry/Memory/MemoryStoreExtensions.cs | Moves memory store helper extensions under Foundry namespace. |
| dotnet/src/Microsoft.Agents.AI.Foundry/Memory/FoundryMemoryProviderScope.cs | Moves scope type under Foundry namespace + marks experimental. |
| dotnet/src/Microsoft.Agents.AI.Foundry/Memory/FoundryMemoryProviderOptions.cs | Moves options type under Foundry namespace + marks experimental. |
| dotnet/src/Microsoft.Agents.AI.Foundry/Memory/FoundryMemoryProvider.cs | Moves provider under Foundry namespace and updates experimental tagging. |
| dotnet/src/Microsoft.Agents.AI.Foundry/Memory/FoundryMemoryJsonUtilities.cs | Moves JSON context/utilities under Foundry namespace + experimental tags. |
| dotnet/src/Microsoft.Agents.AI.Foundry/FoundryAITool.cs | Updates namespace from AzureAI to Foundry. |
| dotnet/src/Microsoft.Agents.AI.Foundry/FoundryAgent.cs | Refactors Responses chat client creation and wires MEAI user-agent policy. |
| dotnet/src/Microsoft.Agents.AI.Foundry/CompatibilitySuppressions.xml | Adds suppressions file for renamed package baseline compatibility. |
| dotnet/src/Microsoft.Agents.AI.Foundry/AzureAIProjectResponsesChatClient.cs | Updates namespace to Foundry for Responses-backed chat client wrapper. |
| dotnet/src/Microsoft.Agents.AI.Foundry/AzureAIProjectChatClientExtensions.cs | Reintroduces AIProjectClient extension methods under Foundry project. |
| dotnet/src/Microsoft.Agents.AI.Foundry/AzureAIProjectChatClient.cs | Updates namespace from AzureAI to Foundry. |
| dotnet/src/Microsoft.Agents.AI.AzureAI/AzureAIProjectChatClientExtensions.cs | Removes old AzureAI extension implementation after rename/move. |
| dotnet/samples/05-end-to-end/A2AClientServer/A2AServer/A2AServer.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/03-workflows/Declarative/ToolApproval/ToolApproval.csproj | Updates declarative workflow sample reference to Foundry declarative project. |
| dotnet/samples/03-workflows/Declarative/StudentTeacher/StudentTeacher.csproj | Updates declarative workflow sample reference to Foundry declarative project. |
| dotnet/samples/03-workflows/Declarative/Marketing/Marketing.csproj | Updates declarative workflow sample reference to Foundry declarative project. |
| dotnet/samples/03-workflows/Declarative/InvokeMcpTool/InvokeMcpTool.csproj | Updates declarative workflow sample reference to Foundry declarative project. |
| dotnet/samples/03-workflows/Declarative/InvokeFunctionTool/InvokeFunctionTool.csproj | Updates declarative workflow sample reference to Foundry declarative project. |
| dotnet/samples/03-workflows/Declarative/InputArguments/InputArguments.csproj | Updates declarative workflow sample reference to Foundry declarative project. |
| dotnet/samples/03-workflows/Declarative/HostedWorkflow/Program.cs | Updates sample usings from AzureAI to Foundry. |
| dotnet/samples/03-workflows/Declarative/HostedWorkflow/HostedWorkflow.csproj | Updates declarative workflow sample reference to Foundry declarative project. |
| dotnet/samples/03-workflows/Declarative/FunctionTools/FunctionTools.csproj | Updates declarative workflow sample reference to Foundry declarative project. |
| dotnet/samples/03-workflows/Declarative/ExecuteWorkflow/ExecuteWorkflow.csproj | Updates declarative workflow sample reference to Foundry declarative project. |
| dotnet/samples/03-workflows/Declarative/ExecuteCode/ExecuteCode.csproj | Updates declarative workflow sample reference to Foundry declarative project. |
| dotnet/samples/03-workflows/Declarative/DeepResearch/DeepResearch.csproj | Updates declarative workflow sample reference to Foundry declarative project. |
| dotnet/samples/03-workflows/Declarative/CustomerSupport/CustomerSupport.csproj | Updates declarative workflow sample reference to Foundry declarative project. |
| dotnet/samples/03-workflows/Declarative/ConfirmInput/ConfirmInput.csproj | Updates declarative workflow sample reference to Foundry declarative project. |
| dotnet/samples/03-workflows/Agents/FoundryAgent/Program.cs | Updates sample usings from AzureAI to Foundry. |
| dotnet/samples/03-workflows/Agents/FoundryAgent/FoundryAgent.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/ModelContextProtocol/FoundryAgent_Hosted_MCP/FoundryAgent_Hosted_MCP.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentWithRAG/AgentWithRAG_Step04_FoundryServiceRAG/Program.cs | Updates sample usings from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentWithRAG/AgentWithRAG_Step04_FoundryServiceRAG/AgentWithRAG_Step04_FoundryServiceRAG.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentWithMemory/AgentWithMemory_Step04_MemoryUsingFoundry/Program.cs | Updates sample to use Foundry memory provider from consolidated package. |
| dotnet/samples/02-agents/AgentWithMemory/AgentWithMemory_Step04_MemoryUsingFoundry/AgentWithMemory_Step04_MemoryUsingFoundry.csproj | Updates sample project references to consolidated Foundry package. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step23_LocalMCP/Agent_Step23_LocalMCP.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step22_MemorySearch/Program.cs | Updates sample usings from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step22_MemorySearch/Agent_Step22_MemorySearch.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step21_WebSearch/Agent_Step21_WebSearch.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step20_MicrosoftFabric/Program.cs | Updates sample usings from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step20_MicrosoftFabric/Agent_Step20_MicrosoftFabric.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step19_SharePoint/Program.cs | Updates sample usings from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step19_SharePoint/Agent_Step19_SharePoint.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step18_BingCustomSearch/Program.cs | Updates sample usings from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step18_BingCustomSearch/Agent_Step18_BingCustomSearch.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step17_OpenAPITools/Program.cs | Updates sample usings from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step17_OpenAPITools/Agent_Step17_OpenAPITools.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step16_FileSearch/Agent_Step16_FileSearch.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step15_ComputerUse/Program.cs | Updates sample usings from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step15_ComputerUse/Agent_Step15_ComputerUse.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step14_CodeInterpreter/Agent_Step14_CodeInterpreter.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step13_Plugins/Agent_Step13_Plugins.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step12_Middleware/Agent_Step12_Middleware.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step11_AsFunctionTool/Agent_Step11_AsFunctionTool.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step10_UsingImages/Agent_Step10_UsingImages.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step09_UsingMcpClientAsTools/Agent_Step09_UsingMcpClientAsTools.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step08_DependencyInjection/Agent_Step08_DependencyInjection.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step07_Observability/Agent_Step07_Observability.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step06_PersistedConversations/Agent_Step06_PersistedConversations.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step05_StructuredOutput/Agent_Step05_StructuredOutput.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step04_UsingFunctionToolsWithApprovals/Agent_Step04_UsingFunctionToolsWithApprovals.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step03_UsingFunctionTools/Agent_Step03_UsingFunctionTools.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step02.2_MultiturnWithServerConversations/Program.cs | Updates sample to explicitly create server-side conversation + use CreateSessionAsync(conversationId). |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step02.2_MultiturnWithServerConversations/Agent_Step02.2_MultiturnWithServerConversations.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step02.1_MultiturnConversation/Agent_Step02.1_MultiturnConversation.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step01_Basics/Agent_Step01_Basics.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step00_FoundryAgentLifecycle/Program.cs | Updates sample usings from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step00_FoundryAgentLifecycle/Agent_Step00_FoundryAgentLifecycle.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/Agents/Agent_Step07_AsMcpTool/Agent_Step07_AsMcpTool.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentProviders/Agent_With_AzureAIProject/Program.cs | Updates sample usings from AzureAI to Foundry. |
| dotnet/samples/02-agents/AgentProviders/Agent_With_AzureAIProject/Agent_With_AzureAIProject.csproj | Updates sample project reference from AzureAI to Foundry. |
| dotnet/agent-framework-release.slnf | Updates solution filter to include Foundry and remove FoundryMemory. |
| dotnet/agent-framework-dotnet.slnx | Updates solution manifest to include Foundry + Foundry tests and remove AzureAI/FoundryMemory entries. |
| dotnet/.github/skills/project-structure/SKILL.md | Updates project-structure skill doc to reference Foundry project name. |
| docs/decisions/0023-foundry-evals-integration.md | Updates ADR references from AzureAI to Foundry package. |
| docs/decisions/0011-create-get-agent-api.md | Updates ADR provider table to reflect Foundry package rename. |
alliscode
reviewed
Apr 1, 2026
alliscode
approved these changes
Apr 1, 2026
peibekwe
reviewed
Apr 1, 2026
peibekwe
reviewed
Apr 1, 2026
peibekwe
approved these changes
Apr 1, 2026
- Remove ImplicitUsings=enable from Foundry csproj to resolve IDE0005 on shared ReplacingRedactor.cs - Add explicit System usings to all source files that relied on them - Sort usings alphabetically per editorconfig rules - Fix UTF-8 BOM on 12 sample Program.cs files - Rename Azure AI Foundry Agents to Microsoft Foundry Agents in docs
peibekwe
approved these changes
Apr 2, 2026
alliscode
pushed a commit
to alliscode/agent-framework
that referenced
this pull request
Apr 3, 2026
…ry and consolidate FoundryMemory (microsoft#5042) * Update Foundry Responses as ChatClientAgent * Migrate obsolete AzureAI integration tests to versioned agent pattern Replace obsolete CreateAIAgentAsync/GetAIAgentAsync calls with Agents.CreateAgentVersionAsync() + AsAIAgent(AgentVersion) in all AzureAI integration tests. - Rename AIProjectClient* test files to FoundryVersionedAgent* - Register AIFunction tools in PromptAgentDefinition.Tools for server-side visibility via AsOpenAIResponseTool() - Skip structured output tests (AzureAIProjectChatClient clears ResponseFormat for versioned agents) - Remove all [Obsolete] attributes and #pragma warning disable CS0618 * Merge FoundryMemory package into AzureAI under Memory/ folder Move all FoundryMemory source, unit tests, and integration tests into the Microsoft.Agents.AI.AzureAI package. Change namespace from Microsoft.Agents.AI.FoundryMemory to Microsoft.Agents.AI.AzureAI. - Add [Experimental] to FoundryMemoryProviderOptions and Scope - Rename internal AIProjectClientExtensions to MemoryStoreExtensions - Update AzureAI .csproj with Compliance.Abstractions, Redaction - Remove FoundryMemory from solution and release filter - Update sample to reference AzureAI instead of FoundryMemory - Delete old Microsoft.Agents.AI.FoundryMemory project and tests * Add EnsureMemoryStoreCreatedAsync and memory existence checks to integration tests - Ensure memory store is created before testing memory operations - Add AZURE_AI_EMBEDDING_DEPLOYMENT_NAME config setting - Assert memories exist in store via SearchMemoriesAsync before cleanup - Verify scope isolation with direct memory store queries * Fix and rename AzureAI unit tests for RAPI vs Versioned clarity - Rename AsAIAgentAsync_* to AsAIAgent_* (drop Async from method group) - Add _Rapi_ prefix to non-versioned (Responses API) tests - Add _Versioned_ prefix to versioned agent tests where needed - Fix RAPI tests: assert GetService<AIProjectClient>() is null - Fix Versioned tests: assert IsType<FoundryAgent> and GetService<AIProjectClient>() returns the client instance - Fix UserAgent header tests: proper HTTP handler routing - Fix ChatClient_UsesDefaultConversationIdAsync test setup - All 153 unit tests pass with 0 failures * Rename Microsoft.Agents.AI.AzureAI to Microsoft.Agents.AI.Foundry Rename the project, namespace, folder, and all references from Microsoft.Agents.AI.AzureAI to Microsoft.Agents.AI.Foundry. Also rename Workflows.Declarative.AzureAI to .Foundry. - Rename src, unit test, integration test, and workflow folders - Update namespaces in all source and test .cs files - Update ProjectReferences in ~47 sample and test .csproj files - Update solution files (.slnx, .slnf) - Update sample using statements - Update READMEs, SKILL.md, ADRs in docs/ - Disable package validation baseline for renamed packages - Fix UTF-8 BOM encoding on all affected .cs files - AzureAI.Persistent left completely unchanged * Fix format: remove ImplicitUsings, add explicit usings, fix BOM encoding - Remove ImplicitUsings=enable from Foundry csproj to resolve IDE0005 on shared ReplacingRedactor.cs - Add explicit System usings to all source files that relied on them - Sort usings alphabetically per editorconfig rules - Fix UTF-8 BOM on 12 sample Program.cs files - Rename Azure AI Foundry Agents to Microsoft Foundry Agents in docs
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.
Summary
This PR renames the Microsoft.Agents.AI.AzureAI package to Microsoft.Agents.AI.Foundry and consolidates the Microsoft.Agents.AI.FoundryMemory package into it.
Changes
Package renames:
Microsoft.Agents.AI.AzureAI→Microsoft.Agents.AI.FoundryMicrosoft.Agents.AI.Workflows.Declarative.AzureAI→Microsoft.Agents.AI.Workflows.Declarative.FoundryMicrosoft.Agents.AI.AzureAI.Persistentleft unchangedFoundryMemory consolidation:
Microsoft.Agents.AI.FoundryMemoryintoMicrosoft.Agents.AI.Foundry/Memory/[Experimental]Microsoft.Agents.AI.FoundryMemorytoMicrosoft.Agents.AI.FoundryIntegration test migration:
AIProjectClient*tests toFoundryVersionedAgent*patternCreateAgentVersionAsync+AsAIAgent(AgentVersion)instead of removedCreateAIAgentAsyncEnsureMemoryStoreCreatedAsyncand memory existence assertions to Memory integration testsUnit test improvements:
AsAIAgentAsync_*→AsAIAgent_*with_Rapi_/_Versioned_prefixesAssert.IsType<FoundryAgent>()andGetService<AIProjectClient>()assertionsDocumentation: