Skip to content

Commit 1d5db4d

Browse files
committed
Address review round 2 (westey-m)
- Remove unnecessary Microsoft.Agents.AI.OpenAI and Azure.AI.OpenAI from Foundry sample csproj files (AF sections use AIProjectClient only) - Remove unused 'using OpenAI.Responses' from Foundry .cs files - Rename SemanticKernelAIAgentThread.cs -> SemanticKernelAIAgentSession.cs - Rename SemanticKernelAIAgentThreadTests.cs -> SemanticKernelAIAgentSessionTests.cs - Apply dotnet format
1 parent 5c92ffb commit 1d5db4d

File tree

10 files changed

+0
-16
lines changed

10 files changed

+0
-16
lines changed

dotnet/samples/AgentFrameworkMigration/AzureAIFoundry/Step01_Basics/AzureAIFoundry_Step01_Basics.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111

1212
<ItemGroup>
1313
<PackageReference Include="Microsoft.Agents.AI.Abstractions" />
14-
<PackageReference Include="Microsoft.Agents.AI.OpenAI" />
1514
<PackageReference Include="Microsoft.Agents.AI.Foundry" />
16-
<PackageReference Include="Azure.AI.OpenAI" />
1715
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
1816
</ItemGroup>
1917

dotnet/samples/AgentFrameworkMigration/AzureAIFoundry/Step01_Basics/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
using Microsoft.Agents.AI;
77
using Microsoft.SemanticKernel;
88
using Microsoft.SemanticKernel.Agents.AzureAI;
9-
using OpenAI.Responses;
109

11-
#pragma warning disable OPENAI001 // ResponsesClient is experimental
1210
#pragma warning disable SKEXP0110 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
1311

1412
var azureEndpoint = Environment.GetEnvironmentVariable("AZURE_FOUNDRY_PROJECT_ENDPOINT") ?? throw new InvalidOperationException("AZURE_FOUNDRY_PROJECT_ENDPOINT is not set.");

dotnet/samples/AgentFrameworkMigration/AzureAIFoundry/Step02_ToolCall/AzureAIFoundry_Step02_ToolCall.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111
<ItemGroup>
1212
<PackageReference Include="Microsoft.Agents.AI.Abstractions" />
13-
<PackageReference Include="Microsoft.Agents.AI.OpenAI" />
1413
<PackageReference Include="Microsoft.Agents.AI.Foundry" />
15-
<PackageReference Include="Azure.AI.OpenAI" />
1614
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
1715
</ItemGroup>
1816

dotnet/samples/AgentFrameworkMigration/AzureAIFoundry/Step02_ToolCall/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
using Microsoft.Extensions.AI;
99
using Microsoft.SemanticKernel;
1010
using Microsoft.SemanticKernel.Agents.AzureAI;
11-
using OpenAI.Responses;
1211

13-
#pragma warning disable OPENAI001
1412
#pragma warning disable SKEXP0110 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
1513

1614
var azureEndpoint = Environment.GetEnvironmentVariable("AZURE_FOUNDRY_PROJECT_ENDPOINT") ?? throw new InvalidOperationException("AZURE_FOUNDRY_PROJECT_ENDPOINT is not set.");

dotnet/samples/AgentFrameworkMigration/AzureAIFoundry/Step03_DependencyInjection/AzureAIFoundry_Step03_DependencyInjection.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111
<ItemGroup>
1212
<PackageReference Include="Microsoft.Agents.AI.Abstractions" />
13-
<PackageReference Include="Microsoft.Agents.AI.OpenAI" />
1413
<PackageReference Include="Microsoft.Agents.AI.Foundry" />
15-
<PackageReference Include="Azure.AI.OpenAI" />
1614
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
1715
</ItemGroup>
1816

dotnet/samples/AgentFrameworkMigration/AzureAIFoundry/Step03_DependencyInjection/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
using Microsoft.Extensions.DependencyInjection;
99
using Microsoft.SemanticKernel;
1010
using Microsoft.SemanticKernel.Agents.AzureAI;
11-
using OpenAI.Responses;
1211

13-
#pragma warning disable OPENAI001
1412
#pragma warning disable SKEXP0110 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
1513

1614
var azureEndpoint = Environment.GetEnvironmentVariable("AZURE_FOUNDRY_PROJECT_ENDPOINT") ?? throw new InvalidOperationException("AZURE_FOUNDRY_PROJECT_ENDPOINT is not set.");

dotnet/samples/AgentFrameworkMigration/AzureAIFoundry/Step04_CodeInterpreter/AzureAIFoundry_Step04_CodeInterpreter.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111
<ItemGroup>
1212
<PackageReference Include="Microsoft.Agents.AI.Abstractions" />
13-
<PackageReference Include="Microsoft.Agents.AI.OpenAI" />
1413
<PackageReference Include="Microsoft.Agents.AI.Foundry" />
15-
<PackageReference Include="Azure.AI.OpenAI" />
1614
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
1715
</ItemGroup>
1816

dotnet/samples/AgentFrameworkMigration/AzureAIFoundry/Step04_CodeInterpreter/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
using Microsoft.SemanticKernel;
1010
using Microsoft.SemanticKernel.Agents;
1111
using Microsoft.SemanticKernel.Agents.AzureAI;
12-
using OpenAI.Responses;
1312

14-
#pragma warning disable OPENAI001
1513
#pragma warning disable SKEXP0110 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
1614

1715
var azureEndpoint = Environment.GetEnvironmentVariable("AZURE_FOUNDRY_PROJECT_ENDPOINT") ?? throw new InvalidOperationException("AZURE_FOUNDRY_PROJECT_ENDPOINT is not set.");

dotnet/src/Agents/Abstractions/AIAgent/SemanticKernelAIAgentThread.cs renamed to dotnet/src/Agents/Abstractions/AIAgent/SemanticKernelAIAgentSession.cs

File renamed without changes.

dotnet/src/Agents/UnitTests/AIAgent/SemanticKernelAIAgentThreadTests.cs renamed to dotnet/src/Agents/UnitTests/AIAgent/SemanticKernelAIAgentSessionTests.cs

File renamed without changes.

0 commit comments

Comments
 (0)