Skip to content

Commit

Permalink
Merge new agent samples
Browse files Browse the repository at this point in the history
  • Loading branch information
crickman committed Jul 25, 2024
1 parent 12925ab commit 21a905f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dotnet/samples/Concepts/Agents/MixedChat_Files.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -95,5 +96,6 @@ async Task InvokeAgentAsync(Agent agent, string? input = null)
}
}
}
#pragma warning restore CS0618 // Type or member is obsolete
}
}
2 changes: 2 additions & 0 deletions dotnet/samples/Concepts/Agents/MixedChat_Images.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -108,5 +109,6 @@ async Task InvokeAgentAsync(Agent agent, string? input = null)
}
}
}
#pragma warning restore CS0618 // Type or member is obsolete
}
}

0 comments on commit 21a905f

Please sign in to comment.