Restore stable replies after cognitive routing
This commit is contained in:
@@ -813,6 +813,11 @@ func main() {
|
||||
log.Printf("cognitive response review proposed stable semantic rewrite; preserving semantic reply")
|
||||
}
|
||||
}
|
||||
if !responseResult.Handled && identityReply == "" {
|
||||
if stableReply, stable := interactiondomain.StableConversationalReply(utterance.Content, deterministicSpeechAct); stable {
|
||||
planningReply = stableReply
|
||||
}
|
||||
}
|
||||
response := interaction.ChatMessageResponse{
|
||||
ConversationID: conversation.ID,
|
||||
UtteranceID: utterance.ID,
|
||||
|
||||
Reference in New Issue
Block a user