Skip to content

Commit be3f504

Browse files
committed
AF 1.4.0
1 parent a93e312 commit be3f504

8 files changed

Lines changed: 25 additions & 53 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Changelog - Agent Framework Toolkit
22

3-
## Unreleased
3+
## Version 1.4.0 (5th of May 2026)
4+
- Updated Agent Framework from 1.3.0 to 1.4.0
45
- Fix that AgentSkills License/Compatibility/AllowedTools information was not correctly included ([PR#64](https://github.com/rwjdk/AgentFrameworkToolkit/pull/64) - Thank you to [UrienZhang](https://github.com/UrienZhang))
6+
- Made Tools, Tools.ModelContextProtocol and AgentSkills dependent on Microsoft.Agents.AI instead of Microsoft.Extensions.AI.Abstractions as latter package tend to be ahead of AF and cause incompatible states.
7+
- Updated all NuGet packages to the latest
58

69
---
710

Directory.Packages.props

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@
55
</PropertyGroup>
66
<ItemGroup>
77
<!-- Microsoft Agents AI Framework -->
8-
<PackageVersion Include="Microsoft.Agents.AI" Version="1.3.0" />
9-
<PackageVersion Include="Microsoft.Agents.AI.OpenAI" Version="1.3.0" />
8+
<PackageVersion Include="Microsoft.Agents.AI" Version="1.4.0" />
9+
<PackageVersion Include="Microsoft.Agents.AI.OpenAI" Version="1.4.0" />
1010
<PackageVersion Include="Microsoft.Agents.AI.Anthropic" Version="1.3.0-preview.260423.1" />
1111
<!-- Azure -->
1212
<PackageVersion Include="Azure.Identity" Version="1.21.0" />
1313
<PackageVersion Include="Azure.AI.OpenAI" Version="2.9.0-beta.1" />
1414
<PackageVersion Include="Azure.AI.Inference" Version="1.0.0-beta.5" />
15-
<PackageVersion Include="Microsoft.Extensions.AI.Abstractions" Version="10.5.0" />
15+
<PackageVersion Include="Microsoft.Extensions.AI.Abstractions" Version="10.5.1" />
1616
<PackageVersion Include="Microsoft.Extensions.AI.AzureAIInference" Version="10.0.0-preview.1.25559.3" />
1717
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.7" />
1818
<!-- Third-party AI SDKs -->
1919
<PackageVersion Include="Google.GenAI" Version="1.6.1" />
2020
<PackageVersion Include="Mistral.SDK" Version="2.3.1" />
2121
<PackageVersion Include="ModelContextProtocol" Version="1.2.0" />
22-
<PackageVersion Include="AWSSDK.BedrockRuntime" Version="4.0.17.4" />
23-
<PackageVersion Include="AWSSDK.Extensions.Bedrock.MEAI" Version="4.0.6.10" />
22+
<PackageVersion Include="AWSSDK.BedrockRuntime" Version="4.0.17.6" />
23+
<PackageVersion Include="AWSSDK.Extensions.Bedrock.MEAI" Version="4.0.7" />
2424
<!-- Code analysis -->
2525
<PackageVersion Include="JetBrains.Annotations" Version="2025.2.4" />
2626
<!-- Testing -->
27-
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.4.0" />
27+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.5.1" />
2828
<PackageVersion Include="xunit.v3" Version="3.2.2" />
2929
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />
3030
<PackageVersion Include="OpenTelemetry" Version="1.15.3" />

development/Sandbox/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
Console.Clear();
77

88
Console.OutputEncoding = Encoding.UTF8;
9-
await Sandbox.Providers.Anthropic.RunAsync();
9+
//await Sandbox.Providers.Anthropic.RunAsync();
1010
//await Sandbox.Providers.AmazonBedrock.RunAsync();
1111
//await Sandbox.Providers.OpenAI.RunAsync();
1212
//await Sandbox.Providers.GitHub.RunAsync();
13-
//await AzureOpenAI.RunAsync();
13+
await AzureOpenAI.RunAsync();
1414
//await Sandbox.Providers.Mistral.RunAsync();
1515
//await Sandbox.Providers.Google.RunAsync();
1616
//await Sandbox.Providers.XAI.RunAsync();

development/Sandbox/Providers/AzureOpenAI.cs

Lines changed: 9 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System.ClientModel;
12
using AgentFrameworkToolkit;
23
using AgentFrameworkToolkit.AzureOpenAI;
34
using AgentFrameworkToolkit.AzureOpenAI.Batching;
@@ -6,6 +7,7 @@
67
using Azure.AI.OpenAI;
78
using Microsoft.Agents.AI;
89
using Microsoft.Extensions.AI;
10+
using OpenAI.Responses;
911
using Secrets;
1012
#pragma warning disable OPENAI001
1113
#pragma warning disable AFT999
@@ -25,58 +27,25 @@ public static async Task RunAsync()
2527
{
2628
Secrets.Secrets secrets = SecretsManager.GetSecrets();
2729

30+
AzureOpenAIClient client = new AzureOpenAIClient(new Uri(secrets.AzureOpenAiEndpoint), new ApiKeyCredential(secrets.AzureOpenAiKey));
31+
ChatClientAgent agent2 = client.GetResponsesClient().AsAIAgent(model: "gpt-4.1");
32+
AgentResponse agentResponse = await agent2.RunAsync("Hello");
33+
2834

2935
AzureOpenAIConnection connection = new AzureOpenAIConnection
3036
{
3137
Endpoint = secrets.AzureOpenAiEndpoint,
3238
ApiKey = secrets.AzureOpenAiKey,
3339
};
34-
35-
36-
AzureOpenAIBatchRunner batchRunner = new(connection);
37-
38-
ChatBatchRun batchRun = await batchRunner.RunChatBatchAsync(new ChatBatchOptions
39-
{
40-
Model = "gpt-4.1-nano-batch",
41-
WaitUntilCompleted = true,
42-
},
43-
[
44-
ChatBatchRequest.Create("What is the capital of France?")
45-
]
46-
);
47-
48-
IList<ChatBatchRunResult> results = await batchRun.GetResultAsync(true);
49-
50-
51-
ChatBatchRun<MyObject> run = await batchRunner.RunChatBatchAsync<MyObject>(new ChatBatchOptions
52-
{
53-
Model = "gpt-4.1-nano-batch",
54-
},
55-
[
56-
ChatBatchRequest.Create("What is the capital of France?"),
57-
]
58-
);
59-
60-
while (run.Status != BatchRunStatus.Completed)
61-
{
62-
run = await batchRunner.GetChatBatchAsync<MyObject>(run.Id);
63-
Console.WriteLine(run.Status + $" [Total: {run.Counts.Total} - Completed: {run.Counts.Completed} - Failed: {run.Counts.Failed}]");
64-
await Task.Delay(5000);
65-
}
66-
67-
IList<ChatBatchRunResult<MyObject>> items = await run.GetResultAsync();
68-
69-
foreach (ChatBatchRunResult<MyObject> item in items)
70-
{
71-
Console.WriteLine(item.ResponseObject?.City);
72-
}
73-
40+
7441
AzureOpenAIAgentFactory factory = new AzureOpenAIAgentFactory(connection);
7542

7643
AzureOpenAIAgent agent = factory.CreateAgent(new AgentOptions
7744
{
7845
Model = "gpt-5-mini",
7946
ReasoningEffort = OpenAIReasoningEffort.Low,
47+
ClientType = ClientType.ResponsesApi,
48+
8049
RawToolCallDetails = Console.WriteLine
8150
});
8251

nuget-package.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
33
<!-- Central version prefix - applies to all nuget packages. -->
4-
<PackageVersion>1.3.0</PackageVersion>
4+
<PackageVersion>1.4.0</PackageVersion>
55
<Configurations>Debug;Release;Publish</Configurations>
66
<Title>Microsoft Agent Framework</Title>
77
<PackageReadmeFile>README.md</PackageReadmeFile>

src/AgentFrameworkToolkit.Tools.ModelContextProtocol/AgentFrameworkToolkit.Tools.ModelContextProtocol.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<Import Project="..\..\nuget-package.props" />
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" />
1110
<PackageReference Include="JetBrains.Annotations" />
11+
<PackageReference Include="Microsoft.Agents.AI" />
1212
<PackageReference Include="ModelContextProtocol" />
1313
</ItemGroup>
1414
<ItemGroup>

src/AgentFrameworkToolkit.Tools/AgentFrameworkToolkit.Tools.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66
<ItemGroup>
77
<PackageReference Include="JetBrains.Annotations" />
8-
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" />
8+
<PackageReference Include="Microsoft.Agents.AI" />
99
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
1010
</ItemGroup>
1111
<Import Project="..\..\nuget-package.props" />

src/AgentSkillsDotNet/AgentSkillsDotNet.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<ItemGroup>
1313
<PackageReference Include="JetBrains.Annotations" />
14-
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" />
14+
<PackageReference Include="Microsoft.Agents.AI" />
1515
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
1616
</ItemGroup>
1717
<ItemGroup>

0 commit comments

Comments
 (0)