-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.Net: Rename ImportAIPluginAsync Update plugin import method and plan…
…ner, and rename AIPlugin to Plugin in KernelAIPluginExtensions.cs (#2968) ### Contribution Checklist - [x] The code builds clean without any errors or warnings - [x] 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 - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄 ## Summary This pull request includes three changes. First, the plugin import method in the PluginTests.cs file of the IntegrationTests project has been updated to use the ImportPluginFunctionsAsync method instead of the deprecated ImportAIPluginAsync method. Second, the StepwisePlannerTests.cs file in the same project has been updated to use the Planning.StepwisePlanner method instead of the deprecated Planning.StepwisePlannerAsync method. Finally, the KernelAIPluginExtensions.cs file has been updated to rename all instances of AIPlugin to Plugin, including renaming the ImportAIPluginAsync method to ImportPluginFunctionsAsync. The changes also include an obsolete attribute for the old method name, which will be removed in a future release, and a new EditorBrowsable attribute to hide the obsolete method from IntelliSense. ## Changes - Replace ImportAIPluginAsync with ImportPluginFunctionsAsync in PluginTests.cs - Update StepwisePlannerTests.cs to use Planning.StepwisePlanner instead of Planning.StepwisePlannerAsync - Rename all instances of AIPlugin to Plugin in KernelAIPluginExtensions.cs - Rename ImportAIPluginAsync method to ImportPluginFunctionsAsync - Add obsolete attribute to ImportAIPluginAsync method - Add EditorBrowsable attribute to obsolete method --- *Powered by [Microsoft Semantic Kernel](https://github.com/microsoft/semantic-kernel)*
- Loading branch information
1 parent
13227dc
commit 76db027
Showing
9 changed files
with
52 additions
and
23 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
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
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