Stop repeat cognition for stable replies
CI / test (push) Successful in 59s
CI / test (pull_request) Successful in 1m4s

This commit is contained in:
m
2026-08-25 04:38:46 +03:00
parent 2622140529
commit 7dd0c8e7a4
+4
View File
@@ -817,8 +817,12 @@ func main() {
stableAct := interactiondomain.ClassifySpeechAct(utterance.Content, utterance.CorrectsUtteranceID)
if stableReply, stable := interactiondomain.StableConversationalReply(utterance.Content, stableAct); stable {
planningReply = stableReply
needsCognition = false
}
}
if identityReply != "" {
needsCognition = false
}
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{
ConversationID: conversation.ID,