Merge pull request #388 from hchen2020/master

Handle output routing exception.
This commit is contained in:
C. Oceania 2024-04-02 17:29:25 -05:00 committed by GitHub
commit ff3f10f3fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);