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

.Net: Bug: Activating ProcessStep function does not work if multiple functions implemented

Open ddobric opened this issue 8 months ago • 4 comments

Hi all,

I'm using the C# process framework. Have implemented a ProcessStep class, which has two functions. Getting the following error:

Image

I have activated the function by specifying the name:

Image

How to repro?

Implement a class with two functions:

Image

ddobric avatar Apr 27 '25 10:04 ddobric

Please provide the complete code

I guess the OnFunctionResult method did not pass in the specified functionName https://github.com/microsoft/semantic-kernel/blob/main/dotnet/src/Experimental/Process.Core/ProcessStepBuilder.cs#L53

feiyun0112 avatar Apr 29 '25 05:04 feiyun0112

I'm not sure about OnFunctionResult. I'm invoking the function on the input event.

Image

Hope this helps.

ddobric avatar Apr 30 '25 08:04 ddobric

Image

I'm not sure about OnFunctionResult. I'm invoking the function on the input event.

Image

Hope this helps.

feiyun0112 avatar May 06 '25 02:05 feiyun0112

Whatever the right event might be, the framework MUST NOT THROW in this case. The argument functionName specifies the function which should be invoked. @feiyun0112 I'm not looking for a workaround, which might be a different event or simply commenting out the second function.

I guess this is the bug, which needs to be fixed or some special feature, who knows.

ddobric avatar May 19 '25 16:05 ddobric