Context
PR #4613 updated Microsoft.Extensions.AI to 10.4.0, which renamed McpServerToolApprovalResponseContent to ToolApprovalResponseContent. The Azure.AI.Agents.Persistent package (currently 1.2.0-beta.9) still references the old type, causing TypeLoadException at runtime.
The upstream fix is tracked in Azure/azure-sdk-for-net#56929 and is expected in Azure.AI.Agents.Persistent 1.2.0-beta.10.
Disabled Tests
All 6 test classes in dotnet/tests/AzureAIAgentsPersistent.IntegrationTests/ have been marked with [Trait("Category", "IntegrationDisabled")]:
AzureAIAgentsPersistentCreateTests (5 test methods)
AzureAIAgentsPersistentRunTests (5 inherited test methods from RunTests)
AzureAIAgentsPersistentRunStreamingTests (5 inherited test methods from RunStreamingTests)
AzureAIAgentsPersistentStructuredOutputRunTests (3 test methods)
AzureAIAgentsChatClientAgentRunTests (2 inherited test methods from ChatClientAgentRunTests)
AzureAIAgentsChatClientAgentRunStreamingTests (2 inherited test methods from ChatClientAgentRunStreamingTests)
Total: 22 test methods disabled
Action Required
- Update
Azure.AI.Agents.Persistent to a version targeting ME.AI 10.4.0+ (likely 1.2.0-beta.10) in Directory.Packages.props
- Remove
[Trait("Category", "IntegrationDisabled")] from all 6 test classes
- Remove the
// Disabled: comments from each file
- Verify all tests pass in CI
Related
Context
PR #4613 updated Microsoft.Extensions.AI to 10.4.0, which renamed
McpServerToolApprovalResponseContenttoToolApprovalResponseContent. TheAzure.AI.Agents.Persistentpackage (currently 1.2.0-beta.9) still references the old type, causingTypeLoadExceptionat runtime.The upstream fix is tracked in Azure/azure-sdk-for-net#56929 and is expected in
Azure.AI.Agents.Persistent 1.2.0-beta.10.Disabled Tests
All 6 test classes in
dotnet/tests/AzureAIAgentsPersistent.IntegrationTests/have been marked with[Trait("Category", "IntegrationDisabled")]:AzureAIAgentsPersistentCreateTests(5 test methods)AzureAIAgentsPersistentRunTests(5 inherited test methods fromRunTests)AzureAIAgentsPersistentRunStreamingTests(5 inherited test methods fromRunStreamingTests)AzureAIAgentsPersistentStructuredOutputRunTests(3 test methods)AzureAIAgentsChatClientAgentRunTests(2 inherited test methods fromChatClientAgentRunTests)AzureAIAgentsChatClientAgentRunStreamingTests(2 inherited test methods fromChatClientAgentRunStreamingTests)Total: 22 test methods disabled
Action Required
Azure.AI.Agents.Persistentto a version targeting ME.AI 10.4.0+ (likely1.2.0-beta.10) inDirectory.Packages.props[Trait("Category", "IntegrationDisabled")]from all 6 test classes// Disabled:comments from each fileRelated