mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
28 lines
977 B
C#
28 lines
977 B
C#
//// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
//using Microsoft.Agents.AI.Workflows;
|
|
|
|
//namespace SingleAgent;
|
|
|
|
///// <summary>
|
|
///// Routes survey responses to appropriate teams based on rating and category.
|
|
///// </summary>
|
|
//public sealed class ResponseRouterExecutor() : Executor<string, string>("ResponseRouterExecutor")
|
|
//{
|
|
// public override ValueTask<string> HandleAsync(string message, IWorkflowContext context, CancellationToken cancellationToken = default)
|
|
// {
|
|
// if (message.Contains("billing", StringComparison.OrdinalIgnoreCase))
|
|
// {
|
|
// return ValueTask.FromResult("Routed to Billing Team");
|
|
// }
|
|
// else if (message.Contains("technical", StringComparison.OrdinalIgnoreCase))
|
|
// {
|
|
// return ValueTask.FromResult("Routed to Technical Support Team");
|
|
// }
|
|
// else
|
|
// {
|
|
// return ValueTask.FromResult("Routed to General Support Team");
|
|
// }
|
|
// }
|
|
//}
|