Handle output routing exception.

This commit is contained in:
Haiping Chen 2024-04-02 17:27:36 -05:00
parent 6f93347b08
commit fcb761976b

View file

@ -38,6 +38,12 @@ public partial class RoutingService
}
else
{
// Handle output routing exception.
if (agent.Type == AgentType.Routing)
{
response.Content = "Apologies, I'm not quite sure I understand. Could you please provide additional clarification or context?";
}
message = RoleDialogModel.From(message,
role: AgentRole.Assistant,
content: response.Content);