Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to RC1 of Semantic Kernel #32

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Update to RC1 of Semantic Kernel #32

wants to merge 7 commits into from

Conversation

lemillermicrosoft
Copy link
Owner

No description provided.

This commit updates the Microsoft.SemanticKernel packages from
1.0.0-beta7 to 1.0.0-beta8, including the Core, Plugins.Web, and
Reliability.Basic packages.
This commit updates the versions of several packages, including
'Microsoft.Extensions.Logging.Console' and 'Microsoft.SemanticKernel'
packages. It also modifies the dependencies in 'SKonsole.csproj',
replacing 'Microsoft.SemanticKernel.Planners.Core' and
'Microsoft.SemanticKernel.Reliability.Basic' with
'Microsoft.SemanticKernel.Planners.Handlebars' and
'Microsoft.SemanticKernel.Planners.OpenAI'. These changes are likely
to improve the functionality and reliability of the project.
This commit includes significant changes to the GitPlugin, SuperFileIOPlugin, and PRPlugin classes, as well as updates to the associated configuration files. The main
focus of these changes is to update the code to work with the new Kernel updates.

In GitPlugin and SuperFileIOPlugin, the IKernel interface has been replaced with the Kernel class. The ITextCompletion service has been replaced with the
ITextGenerationService. The SKFunction attribute and SKContext class have been replaced with the KernelFunction attribute and KernelArguments class respectively.

In PRPlugin, the SKFunction attribute has been replaced with the KernelFunction attribute. The way functions are accessed has been changed from
`context.Functions.GetFunction` to `kernel.Plugins`. The `RunAsync` method has also been replaced with `InvokeAsync`.

The `config.json` files for the plugins have also been updated. The `completion` and `input` sections have been replaced with `execution_settings`.

These changes ensure that the plugins are compatible with the latest version of the Kernel and can utilize its new features and improvements.
This commit includes a significant overhaul of the interaction between the kernel and plugins. The `ImportFunctions` method has been replaced with `ImportPluginFromObject` and `RunAsync` with `InvokeAsync` for better clarity and consistency. The handling of kernel responses has also been updated to use `KernelArguments` instead of direct string values.

Additionally, the `SequentialPlanner` has been replaced with `HandlebarsPlanner` in the `PlannerCommand` class. Some unused imports were also removed. The StepwisePlannerCommand and StepwisePlugin classes have been significantly refactored, with changes including renaming of classes and methods, changing the way parameters are set, and modifying the way functions are called.

The `IKernel` interface has been replaced with the `Kernel` class in several places, and the `SKFunction` attribute with the `KernelFunction` attribute. The KernelProvider class has been refactored, changing the return type of the Get method from `IKernel` to `Kernel`. The configuration for OpenAI and AzureOpenAI chat completion has been updated, and the retry logic has been removed from the kernel builder.

In the StepwisePlannerCommand class, additional context variables have been added to capture the steps taken and the final answer. These changes aim to improve the code's readability and maintainability.
This commit addresses an issue in the PRCommand class where the logger was incorrectly trying to retrieve a string value from the kernel response. The type has been corrected to KernelArguments, ensuring that the logger correctly retrieves the InputParameterName from the kernel response. This change improves the accuracy and reliability of the logging process.
This commit updates the instructions for generating commit messages. The changes include specifying that the emoji should be the actual character, not its shortcode, and
clarifying the format of the output. The instructions now explicitly state that the output should not include quotes or escaped newline characters.
This commit introduces a new function to the WriterPlugin class in the SKonsole application. The function, `_funnyPoemFunction`, has been added to a new instance of `KernelPlugin` which is then added to the kernel's plugin list. This change enhances the functionality of the WriterPlugin by providing additional capabilities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant