From 21a905f37d59ac32f1d818dde3e8f30acf43836b Mon Sep 17 00:00:00 2001 From: Chris Rickman Date: Thu, 25 Jul 2024 09:20:58 -0700 Subject: [PATCH] Merge new agent samples --- dotnet/samples/Concepts/Agents/MixedChat_Files.cs | 2 ++ dotnet/samples/Concepts/Agents/MixedChat_Images.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dotnet/samples/Concepts/Agents/MixedChat_Files.cs b/dotnet/samples/Concepts/Agents/MixedChat_Files.cs index 5d96de68da72..b95c6efca36d 100644 --- a/dotnet/samples/Concepts/Agents/MixedChat_Files.cs +++ b/dotnet/samples/Concepts/Agents/MixedChat_Files.cs @@ -25,6 +25,7 @@ public class MixedChat_Files(ITestOutputHelper output) : BaseTest(output) [Fact] public async Task AnalyzeFileAndGenerateReportAsync() { +#pragma warning disable CS0618 // Type or member is obsolete OpenAIFileService fileService = new(TestConfiguration.OpenAI.ApiKey); OpenAIFileReference uploadFile = @@ -95,5 +96,6 @@ async Task InvokeAgentAsync(Agent agent, string? input = null) } } } +#pragma warning restore CS0618 // Type or member is obsolete } } diff --git a/dotnet/samples/Concepts/Agents/MixedChat_Images.cs b/dotnet/samples/Concepts/Agents/MixedChat_Images.cs index 385577573ac6..36b96fc4be54 100644 --- a/dotnet/samples/Concepts/Agents/MixedChat_Images.cs +++ b/dotnet/samples/Concepts/Agents/MixedChat_Images.cs @@ -27,6 +27,7 @@ public class MixedChat_Images(ITestOutputHelper output) : BaseTest(output) [Fact] public async Task AnalyzeDataAndGenerateChartAsync() { +#pragma warning disable CS0618 // Type or member is obsolete OpenAIFileService fileService = new(TestConfiguration.OpenAI.ApiKey); // Define the agents @@ -108,5 +109,6 @@ async Task InvokeAgentAsync(Agent agent, string? input = null) } } } +#pragma warning restore CS0618 // Type or member is obsolete } }