Skip to content

Commit b1ecee2

Browse files
westey-mCopilot
andauthored
.Net: Add OpenAPI tool call migration sample for AzureOpenAI (#13339)
### Motivation and Context Moving sample from AF to SK repos to avoid circular package reference. ### Description - Add OpenAPI tool call migration sample to AF migration samples which can be linked from the AF repo. ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [ ] The code builds clean without any errors or warnings - [ ] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [ ] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone 😄 --------- Co-authored-by: Copilot <[email protected]>
1 parent 1ccdd1e commit b1ecee2

File tree

4 files changed

+454
-1
lines changed

4 files changed

+454
-1
lines changed

dotnet/SK-dotnet.slnx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
<Project Path="samples/GettingStartedWithVectorStores/GettingStartedWithVectorStores.csproj" />
2828
<Project Path="samples/LearnResources/LearnResources.csproj" />
2929
</Folder>
30-
<Folder Name="/samples/AgentFrameworkMigration/" />
30+
<Folder Name="/samples/AgentFrameworkMigration/">
31+
<File Path="samples/AgentFrameworkMigration/README.md" />
32+
</Folder>
3133
<Folder Name="/samples/AgentFrameworkMigration/OpenAI/">
3234
<Project Path="samples/AgentFrameworkMigration/OpenAI/Step01_Basics/OpenAI_Step01_Basics.csproj" />
3335
<Project Path="samples/AgentFrameworkMigration/OpenAI/Step02_ToolCall/OpenAI_Step02_ToolCall.csproj" />
@@ -37,6 +39,7 @@
3739
<Project Path="samples/AgentFrameworkMigration/AzureOpenAI/Step01_Basics/AzureOpenAI_Step01_Basics.csproj" />
3840
<Project Path="samples/AgentFrameworkMigration/AzureOpenAI/Step02_ToolCall/AzureOpenAI_Step02_ToolCall.csproj" />
3941
<Project Path="samples/AgentFrameworkMigration/AzureOpenAI/Step03_DependencyInjection/AzureOpenAI_Step03_DependencyInjection.csproj" />
42+
<Project Path="samples/AgentFrameworkMigration/AzureOpenAI/Step04_ToolCall_WithOpenAPI/AzureOpenAI_Step04_ToolCall_WithOpenAPI.csproj" />
4043
</Folder>
4144
<Folder Name="/samples/AgentFrameworkMigration/OpenAIAssistants/">
4245
<Project Path="samples/AgentFrameworkMigration/OpenAIAssistants/Step01_Basics/OpenAIAssistants_Step01_Basics.csproj" />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net9.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
<NoWarn>$(NoWarn);CA1707;CA2007;VSTHRD111</NoWarn>
9+
</PropertyGroup>
10+
11+
<ItemGroup>
12+
<PackageReference Include="Microsoft.Agents.AI.Abstractions" />
13+
<PackageReference Include="Microsoft.Agents.AI.OpenAI" />
14+
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
15+
</ItemGroup>
16+
17+
<ItemGroup>
18+
<ProjectReference Include="..\..\..\..\src\Agents\Core\Agents.Core.csproj" />
19+
<ProjectReference Include="..\..\..\..\src\Agents\OpenAI\Agents.OpenAI.csproj" />
20+
<ProjectReference Include="..\..\..\..\src\Functions\Functions.OpenApi\Functions.OpenApi.csproj" />
21+
<ProjectReference Include="..\..\..\..\src\SemanticKernel.MetaPackage\SemanticKernel.MetaPackage.csproj" />
22+
</ItemGroup>
23+
24+
<ItemGroup>
25+
<None Update="OpenAPISpec.json">
26+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
27+
</None>
28+
</ItemGroup>
29+
30+
</Project>

0 commit comments

Comments
 (0)