Trace final chat response selection #310
@@ -813,11 +813,13 @@ func main() {
|
|||||||
log.Printf("cognitive response review proposed stable semantic rewrite; preserving semantic reply")
|
log.Printf("cognitive response review proposed stable semantic rewrite; preserving semantic reply")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !responseResult.Handled && identityReply == "" {
|
if identityReply == "" {
|
||||||
if stableReply, stable := interactiondomain.StableConversationalReply(utterance.Content, deterministicSpeechAct); stable {
|
stableAct := interactiondomain.ClassifySpeechAct(utterance.Content, utterance.CorrectsUtteranceID)
|
||||||
|
if stableReply, stable := interactiondomain.StableConversationalReply(utterance.Content, stableAct); stable {
|
||||||
planningReply = stableReply
|
planningReply = stableReply
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
log.Printf("chat response final message=%q act=%s deterministic=%s handled=%t fallback=%q planning=%q", utterance.Content, semantic.Interpretation.SpeechAct, deterministicSpeechAct, responseResult.Handled, semantic.Reply, planningReply)
|
||||||
response := interaction.ChatMessageResponse{
|
response := interaction.ChatMessageResponse{
|
||||||
ConversationID: conversation.ID,
|
ConversationID: conversation.ID,
|
||||||
UtteranceID: utterance.ID,
|
UtteranceID: utterance.ID,
|
||||||
|
|||||||
Reference in New Issue
Block a user