semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

.Net: Bug: Type 'Microsoft.SemanticKernel.KernelProcessTarget' cannot be serialized, While using Dapr Runtime

Open anktsrkr opened this issue 6 months ago • 2 comments

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 Image

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

anktsrkr avatar May 20 '25 19:05 anktsrkr

@alliscode for visibility.

moonbox3 avatar May 21 '25 08:05 moonbox3

@anktsrkr thank you for filing this issue, we'll look at this ASAP.

alliscode avatar May 21 '25 14:05 alliscode

Hi @alliscode, the PR does solve the problem of Starting the process, however process it self is getting below error while running -

Image

Is this something related?

anktsrkr avatar May 22 '25 21:05 anktsrkr

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.

jamesvivid avatar Jul 25 '25 14:07 jamesvivid