samples: WorkflowHelper => WorkflowFactory (#1640)

This commit is contained in:
Jacob Alber
2025-10-23 00:34:26 -04:00
committed by GitHub
Unverified
parent e9687d59b4
commit feb3404a27
10 changed files with 16 additions and 16 deletions
@@ -24,7 +24,7 @@ public static class Program
private static async Task Main()
{
// Create the workflow
var workflow = WorkflowHelper.GetWorkflow();
var workflow = WorkflowFactory.BuildWorkflow();
// Execute the workflow
await using StreamingRun handle = await InProcessExecution.StreamAsync(workflow, NumberSignal.Init);
@@ -4,13 +4,13 @@ using Microsoft.Agents.AI.Workflows;
namespace WorkflowHumanInTheLoopBasicSample;
internal static class WorkflowHelper
internal static class WorkflowFactory
{
/// <summary>
/// Get a workflow that plays a number guessing game with human-in-the-loop interaction.
/// An input port allows the external world to provide inputs to the workflow upon requests.
/// </summary>
internal static Workflow GetWorkflow()
internal static Workflow BuildWorkflow()
{
// Create the executors
RequestPort numberRequestPort = RequestPort.Create<NumberSignal, int>("GuessNumber");