Merge pull request 'Observe chat context route decisions' (#387) from codex/household-travel-query-fix into main
CI / test (push) Successful in 1m15s
CI / test (push) Successful in 1m15s
Reviewed-on: #387
This commit was merged in pull request #387.
This commit is contained in:
@@ -534,6 +534,10 @@ func main() {
|
|||||||
}
|
}
|
||||||
conversationHistory = append(conversationHistory, recentUserHistory...)
|
conversationHistory = append(conversationHistory, recentUserHistory...)
|
||||||
personalMemory := interactiondomain.CompilePersonalMemory(conversationHistory)
|
personalMemory := interactiondomain.CompilePersonalMemory(conversationHistory)
|
||||||
|
// Context selection must stay observable without logging the user's
|
||||||
|
// message or personal fact values. These flags let an operator distinguish
|
||||||
|
// a missing derived fact from a later routing or clarification decision.
|
||||||
|
personalMemoryHasCurrentLocation := personalMemory.CurrentLocation() != ""
|
||||||
if !creativeUserRequest && locationReply == "" {
|
if !creativeUserRequest && locationReply == "" {
|
||||||
if continuation := interactiondomain.ContinueLocalSearch(effectiveTaskMessage, conversationHistory); continuation != "" {
|
if continuation := interactiondomain.ContinueLocalSearch(effectiveTaskMessage, conversationHistory); continuation != "" {
|
||||||
continuationMessage = continuation
|
continuationMessage = continuation
|
||||||
@@ -650,6 +654,7 @@ func main() {
|
|||||||
deterministicSpeechAct := semantic.Interpretation.SpeechAct
|
deterministicSpeechAct := semantic.Interpretation.SpeechAct
|
||||||
deterministicReply := semantic.Reply
|
deterministicReply := semantic.Reply
|
||||||
routePlan := buildChatRoutePlan(semantic)
|
routePlan := buildChatRoutePlan(semantic)
|
||||||
|
log.Printf("chat context state: current_location=%t research_route=%t clarification=%s", personalMemoryHasCurrentLocation, hasChatRoute(routePlan, chatRouteResearch), semantic.Interpretation.Clarification)
|
||||||
cognitiveAttempted := false
|
cognitiveAttempted := false
|
||||||
cognitiveAvailable := true
|
cognitiveAvailable := true
|
||||||
semanticInterpretationRequested := shouldRequestSemanticInterpretation(semantic)
|
semanticInterpretationRequested := shouldRequestSemanticInterpretation(semantic)
|
||||||
|
|||||||
Reference in New Issue
Block a user