Normalize contextual travel research

This commit is contained in:
m
2026-08-25 19:27:59 +03:00
parent 232a57eed4
commit 3cc636d6b7
2 changed files with 10 additions and 1 deletions
@@ -172,6 +172,10 @@ func TestTravelRouteWithKnownOriginDoesNotAskForTicketDate(t *testing.T) {
if got := TravelSearchClarification("как можно добраться до Сочи?", history); got != "" {
t.Fatalf("general route was incorrectly reduced to ticket clarification: %q", got)
}
got := TravelResearchQuery("как можно добраться до Сочи?", history, time.Time{})
if got != "способы добраться из Москве в Сочи: самолет поезд автобус автомобиль" {
t.Fatalf("general route query lost known route context: %q", got)
}
}
func TestInterpretUtteranceDirectiveRecordsOutcomeWithoutExecution(t *testing.T) {