Handle output routing exception.
This commit is contained in:
parent
6f93347b08
commit
fcb761976b
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue