The latest version of Microsoft.SemanticKernel 1.0.1 is not supporting SKContext and SK Function Attribute. How to migrate from SK Context to Latest Version of 1.0.1.
How to migrate from SK Context to Latest Version of 1.0.1. Sample Code:
[SKFunction, SKName(nameof(Query)), Description("Request Process")]
public async Task <SKContext> ProcessRequest(SKContext context)
{
//Migration Code here
}
Basically,
SKFunction
becameKernelFunction
andSKContext
was renamed toKernelArguments
. The first one is straightforward renaming, and if you want to explore more in-depth why and howSKContext
turned intoKernelArguments
, you should explore the commits from the dotnet-1.0.0-rc1 release. I selected some of them:I recommend taking a look at the kernel syntax examples here. They use
KernelFunction
andKernelArguments
. Example:Finally, with want an example of an application using those abstractions, you should check the chat-copilot project.