semantic-kernel
semantic-kernel copied to clipboard
.Net: Bug: Type 'Microsoft.SemanticKernel.KernelProcessTarget' cannot be serialized, While using Dapr Runtime
Describe the bug While using Latest Process framework with Dapr runtime it is unable to start the process due to below error. SC attached.
To Reproduce
Steps to reproduce the behavior:
Create a simple ProcessBuilder
ProcessBuilder processBuilder = new("DocumentationGeneration");
var infoGatheringStep = processBuilder.AddStepFromType<GatherProductInfoStep>();
var kernelProcess = processBuilder.Build();
var processId = Guid.NewGuid().ToString();
var processContext = await kernelProcess.StartAsync(new KernelProcessEvent()
{
Id = "Start", Data = new ProductInfo { Title = "GlowBrew" }
}, processId: processId, actorProx);
Expected behavior Process should run with Dapr support.
Screenshots
Platform
- Language: C#
- Source: All the nuget packages are 1.53.0 /-alpha/-preview
- AI modelOpenAI:GPT-4o-mini(2024-07-18)
- IDE: Visual Studio
- OS: Windows
@alliscode for visibility.
@anktsrkr thank you for filing this issue, we'll look at this ASAP.
Hi @alliscode, the PR does solve the problem of Starting the process, however process it self is getting below error while running -
Is this something related?
Just wondering if there is any update on this, I also see "The target for the edge is not a function target." exceptions with Dapr.