From 26eb2f3bf638eb068cd41688492268754c4d47c3 Mon Sep 17 00:00:00 2001 From: Peter Ibekwe <109177538+peibekwe@users.noreply.github.com> Date: Wed, 25 Mar 2026 08:43:19 -0700 Subject: [PATCH] Update dotnet/samples/03-workflows/Agents/WorkflowAsAnAgent/WorkflowFactory.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../Agents/WorkflowAsAnAgent/WorkflowFactory.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/dotnet/samples/03-workflows/Agents/WorkflowAsAnAgent/WorkflowFactory.cs b/dotnet/samples/03-workflows/Agents/WorkflowAsAnAgent/WorkflowFactory.cs index adb1b22cef..fd402b7946 100644 --- a/dotnet/samples/03-workflows/Agents/WorkflowAsAnAgent/WorkflowFactory.cs +++ b/dotnet/samples/03-workflows/Agents/WorkflowAsAnAgent/WorkflowFactory.cs @@ -11,11 +11,13 @@ internal static class WorkflowFactory /// /// Creates a workflow that uses two language agents to process input concurrently. /// - /// The executors in this workflow are provided as shared instances, meaning the same - /// executor objects are reused across multiple workflow runs. Stateful executors must - /// implement so the framework can clear their state - /// between runs. Framework-provided executors like - /// already implement this interface. + /// In this workflow, the Start and the + /// are provided as shared instances, meaning + /// the same executor objects are reused across multiple workflow runs. The language agents + /// (French and English) are created via a factory and instantiated per workflow run. + /// Stateful shared executors must implement so the + /// framework can clear their state between runs. Framework-provided executors like + /// already implement this interface. /// /// The chat client to use for the agents /// A workflow that processes input using two language agents