File tree Expand file tree Collapse file tree
agent-framework/tutorials/workflows Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ Create an executor that converts text to uppercase:
6363internal sealed class UppercaseExecutor () : ReflectingExecutor <UppercaseExecutor >(" UppercaseExecutor" ),
6464 IMessageHandler <string , string >
6565{
66- public ValueTask <string > HandleAsync (string input , CancellationToken cancellationToken = default )
66+ public ValueTask <string > HandleAsync (string input , IWorkflowContext context )
6767 {
6868 // Convert input to uppercase and pass to next executor
6969 return ValueTask .FromResult (input .ToUpper ());
@@ -89,7 +89,7 @@ Create an executor that reverses the text:
8989internal sealed class ReverseTextExecutor () : ReflectingExecutor <ReverseTextExecutor >(" ReverseTextExecutor" ),
9090 IMessageHandler <string , string >
9191{
92- public ValueTask <string > HandleAsync (string input , CancellationToken cancellationToken = default )
92+ public ValueTask <string > HandleAsync (string input , IWorkflowContext context )
9393 {
9494 // Reverse the input text
9595 return ValueTask .FromResult (new string (input .Reverse ().ToArray ()));
You can’t perform that action at this time.
0 commit comments