Skip to content

Commit

Permalink
.Net: fix bug: Example Step00 of Process Framework is wrong (#10119)
Browse files Browse the repository at this point in the history
#10087

Co-authored-by: feiyun0112 <[email protected]>
Co-authored-by: Chris <[email protected]>
  • Loading branch information
3 people authored Jan 8, 2025
1 parent c4100ee commit cde7ac1
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,15 @@ public async Task UseSimplestProcessAsync()
Kernel kernel = Kernel.CreateBuilder()
.Build();

ProcessBuilder processBuilder = new(nameof(Step00_Processes));

// Create a process that will interact with the chat completion service
ProcessBuilder process = new("ChatBot");
var startStep = processBuilder.AddStepFromType<StartStep>();
var doSomeWorkStep = processBuilder.AddStepFromType<DoSomeWorkStep>();
var doMoreWorkStep = processBuilder.AddStepFromType<DoMoreWorkStep>();
var lastStep = processBuilder.AddStepFromType<LastStep>();
var startStep = process.AddStepFromType<StartStep>();
var doSomeWorkStep = process.AddStepFromType<DoSomeWorkStep>();
var doMoreWorkStep = process.AddStepFromType<DoMoreWorkStep>();
var lastStep = process.AddStepFromType<LastStep>();

// Define the process flow
processBuilder
process
.OnInputEvent(ProcessEvents.StartProcess)
.SendEventTo(new ProcessFunctionTargetBuilder(startStep));

Expand Down

0 comments on commit cde7ac1

Please sign in to comment.