forked from microsoft/semantic-kernel
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.Net: Function calling stepwise planner integration tests in pipeline (…
…microsoft#4219) ### Motivation and Context We have been ignoring our integration tests for the function calling stepwise planner because we did not have a function calling model setup to be used in the test pipeline. This PR adds the configuration needed to enable the planner tests (only) to use the newly deployed function calling models. I have created new configurations for the planner tests so as to not disturb the existing tests by changing the model. This is mainly to avoid any disruptions or slowdowns in the testing process as we get ready for the V1 release. Resolved issue microsoft#4249 - [ ] 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: Ben Thomas <bentho@microsoft.com>
- Loading branch information
Showing
6 changed files
with
50 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
dotnet/src/IntegrationTests/TestSettings/PlannerConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
|
||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace SemanticKernel.IntegrationTests.TestSettings; | ||
|
||
[SuppressMessage("Performance", "CA1812:Internal class that is apparently never instantiated", | ||
Justification = "Configuration classes are instantiated through IConfiguration.")] | ||
internal sealed class PlannerConfiguration | ||
{ | ||
public AzureOpenAIConfiguration? AzureOpenAI { get; set; } | ||
|
||
public OpenAIConfiguration? OpenAI { get; set; } | ||
|
||
public PlannerConfiguration(AzureOpenAIConfiguration? azureOpenAIConfiguration, OpenAIConfiguration? openAIConfiguration) | ||
{ | ||
this.AzureOpenAI = azureOpenAIConfiguration; | ||
this.OpenAI = openAIConfiguration; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters