Skip to content

Commit cc85bbc

Browse files
.NET: Re-enable AzureAI.Persistent packaging and integration tests (microsoft#4769) (microsoft#4865)
Azure.AI.Agents.Persistent 1.2.0-beta.10 now targets ME.AI 10.4.0+, resolving the compatibility issue that required disabling this package. - Remove IsPackable=false from the csproj - Re-enable all 6 integration test classes (IntegrationDisabled → Integration) - Remove outdated compatibility warning from README.md Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 01aaf2b commit cc85bbc

8 files changed

Lines changed: 7 additions & 42 deletions

dotnet/src/Microsoft.Agents.AI.AzureAI.Persistent/Microsoft.Agents.AI.AzureAI.Persistent.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
<!-- NuGet Package Settings -->
2121
<Title>Microsoft Agent Framework AzureAI Persistent Agents</Title>
2222
<Description>Provides Microsoft Agent Framework support for Azure AI Persistent Agents.</Description>
23-
<!-- Disabled until Azure.AI.Agents.Persistent targets ME.AI 10.4.0+ (https://github.com/microsoft/agent-framework/issues/4769) -->
24-
<IsPackable>false</IsPackable>
23+
2524
</PropertyGroup>
2625

2726
</Project>
Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
11
# Microsoft.Agents.AI.AzureAI.Persistent
22

33
Provides integration between the Microsoft Agent Framework and Azure AI Agents Persistent (`Azure.AI.Agents.Persistent`).
4-
5-
## ⚠️ Known Compatibility Limitation
6-
7-
The underlying `Azure.AI.Agents.Persistent` package (currently 1.2.0-beta.9) targets `Microsoft.Extensions.AI.Abstractions` 10.1.x and references types that were renamed in 10.4.0 (e.g., `McpServerToolApprovalResponseContent``ToolApprovalResponseContent`). This causes `TypeLoadException` at runtime when used with ME.AI 10.4.0+.
8-
9-
**Compatible versions:**
10-
11-
| Package | Compatible Version |
12-
|---|---|
13-
| `Azure.AI.Agents.Persistent` | 1.2.0-beta.9 (targets ME.AI 10.1.x) |
14-
| `Microsoft.Extensions.AI.Abstractions` | ≤ 10.3.0 |
15-
| `OpenAI` | ≤ 2.8.0 |
16-
17-
**Resolution:** An updated version of `Azure.AI.Agents.Persistent` targeting ME.AI 10.4.0+ is expected in 1.2.0-beta.10. The upstream fix is tracked in [Azure/azure-sdk-for-net#56929](https://github.com/Azure/azure-sdk-for-net/pull/56929).
18-
19-
**Tracking issue:** [microsoft/agent-framework#4769](https://github.com/microsoft/agent-framework/issues/4769)

dotnet/tests/AzureAIAgentsPersistent.IntegrationTests/AzureAIAgentsChatClientAgentRunStreamingTests.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44

55
namespace AzureAIAgentsPersistent.IntegrationTests;
66

7-
// Disabled: Azure.AI.Agents.Persistent 1.2.0-beta.9 references McpServerToolApprovalResponseContent
8-
// which was removed in ME.AI 10.4.0. Re-enable once Persistent targets ME.AI 10.4.0+ (expected in 1.2.0-beta.10).
9-
// Tracking: https://github.com/microsoft/agent-framework/issues/4769
10-
[Trait("Category", "IntegrationDisabled")]
7+
[Trait("Category", "Integration")]
118
public class AzureAIAgentsChatClientAgentRunStreamingTests() : ChatClientAgentRunStreamingTests<AzureAIAgentsPersistentFixture>(() => new())
129
{
1310
}

dotnet/tests/AzureAIAgentsPersistent.IntegrationTests/AzureAIAgentsChatClientAgentRunTests.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44

55
namespace AzureAIAgentsPersistent.IntegrationTests;
66

7-
// Disabled: Azure.AI.Agents.Persistent 1.2.0-beta.9 references McpServerToolApprovalResponseContent
8-
// which was removed in ME.AI 10.4.0. Re-enable once Persistent targets ME.AI 10.4.0+ (expected in 1.2.0-beta.10).
9-
// Tracking: https://github.com/microsoft/agent-framework/issues/4769
10-
[Trait("Category", "IntegrationDisabled")]
7+
[Trait("Category", "Integration")]
118
public class AzureAIAgentsChatClientAgentRunTests() : ChatClientAgentRunTests<AzureAIAgentsPersistentFixture>(() => new())
129
{
1310
}

dotnet/tests/AzureAIAgentsPersistent.IntegrationTests/AzureAIAgentsPersistentCreateTests.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414

1515
namespace AzureAIAgentsPersistent.IntegrationTests;
1616

17-
// Disabled: Azure.AI.Agents.Persistent 1.2.0-beta.9 references McpServerToolApprovalResponseContent
18-
// which was removed in ME.AI 10.4.0. Re-enable once Persistent targets ME.AI 10.4.0+ (expected in 1.2.0-beta.10).
19-
// Tracking: https://github.com/microsoft/agent-framework/issues/4769
20-
[Trait("Category", "IntegrationDisabled")]
17+
[Trait("Category", "Integration")]
2118
public class AzureAIAgentsPersistentCreateTests
2219
{
2320
private const string SkipCodeInterpreterReason = "Azure AI Code Interpreter intermittently fails to execute uploaded files in CI";

dotnet/tests/AzureAIAgentsPersistent.IntegrationTests/AzureAIAgentsPersistentRunStreamingTests.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44

55
namespace AzureAIAgentsPersistent.IntegrationTests;
66

7-
// Disabled: Azure.AI.Agents.Persistent 1.2.0-beta.9 references McpServerToolApprovalResponseContent
8-
// which was removed in ME.AI 10.4.0. Re-enable once Persistent targets ME.AI 10.4.0+ (expected in 1.2.0-beta.10).
9-
// Tracking: https://github.com/microsoft/agent-framework/issues/4769
10-
[Trait("Category", "IntegrationDisabled")]
7+
[Trait("Category", "Integration")]
118
public class AzureAIAgentsPersistentRunStreamingTests() : RunStreamingTests<AzureAIAgentsPersistentFixture>(() => new())
129
{
1310
}

dotnet/tests/AzureAIAgentsPersistent.IntegrationTests/AzureAIAgentsPersistentRunTests.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44

55
namespace AzureAIAgentsPersistent.IntegrationTests;
66

7-
// Disabled: Azure.AI.Agents.Persistent 1.2.0-beta.9 references McpServerToolApprovalResponseContent
8-
// which was removed in ME.AI 10.4.0. Re-enable once Persistent targets ME.AI 10.4.0+ (expected in 1.2.0-beta.10).
9-
// Tracking: https://github.com/microsoft/agent-framework/issues/4769
10-
[Trait("Category", "IntegrationDisabled")]
7+
[Trait("Category", "Integration")]
118
public class AzureAIAgentsPersistentRunTests() : RunTests<AzureAIAgentsPersistentFixture>(() => new())
129
{
1310
}

dotnet/tests/AzureAIAgentsPersistent.IntegrationTests/AzureAIAgentsPersistentStructuredOutputRunTests.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55

66
namespace AzureAIAgentsPersistent.IntegrationTests;
77

8-
// Disabled: Azure.AI.Agents.Persistent 1.2.0-beta.9 references McpServerToolApprovalResponseContent
9-
// which was removed in ME.AI 10.4.0. Re-enable once Persistent targets ME.AI 10.4.0+ (expected in 1.2.0-beta.10).
10-
// Tracking: https://github.com/microsoft/agent-framework/issues/4769
11-
[Trait("Category", "IntegrationDisabled")]
8+
[Trait("Category", "Integration")]
129
public class AzureAIAgentsPersistentStructuredOutputRunTests() : StructuredOutputRunTests<AzureAIAgentsPersistentFixture>(() => new())
1310
{
1411
private const string SkipReason = "Fails intermittently on the build agent/CI";

0 commit comments

Comments
 (0)