From 5ae74d7dd619c0f30c1db7a041ecac0f679f9377 Mon Sep 17 00:00:00 2001 From: Chris <66376200+crickman@users.noreply.github.com> Date: Fri, 22 Nov 2024 19:24:27 -0800 Subject: [PATCH] .Net Processes - Sync parameter name for error handler (#9797) ### Motivation and Context Update sample `Step04_AgentOrchestration` to correctly specify the name of the function parameter. Fixes: https://github.com/microsoft/semantic-kernel/issues/9778 ### Description Sample specified parameter name `exception` but the actual name had been refactored to `error`. ### Contribution Checklist - [X] The code builds clean without any errors or warnings - [X] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [X] All unit tests pass, and I have added new tests where possible - [X] I didn't break anyone :smile: --- .../Step04/Step04_AgentOrchestration.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet/samples/GettingStartedWithProcesses/Step04/Step04_AgentOrchestration.cs b/dotnet/samples/GettingStartedWithProcesses/Step04/Step04_AgentOrchestration.cs index 384907cb471d..e349404c5137 100644 --- a/dotnet/samples/GettingStartedWithProcesses/Step04/Step04_AgentOrchestration.cs +++ b/dotnet/samples/GettingStartedWithProcesses/Step04/Step04_AgentOrchestration.cs @@ -166,7 +166,7 @@ void AttachErrorStep(ProcessStepBuilder step, params string[] functionNames) { step .OnFunctionError(functionName) - .SendEventTo(new ProcessFunctionTargetBuilder(renderMessageStep, RenderMessageStep.Functions.RenderError, "exception")) + .SendEventTo(new ProcessFunctionTargetBuilder(renderMessageStep, RenderMessageStep.Functions.RenderError, "error")) .StopProcess(); } }