Prefer current travel context in follow-up answers
This commit is contained in:
@@ -113,6 +113,13 @@ func TestTravelSearchClarification(t *testing.T) {
|
||||
if got := TravelSearchClarification("Найди билеты, какой ближайший самолёт", contextHistory); got != "Из какого города вылетать в Сочи и на какую дату?" {
|
||||
t.Fatalf("travel destination should be inherited from context, got %q", got)
|
||||
}
|
||||
noisyContext := []interaction.HumanUtterance{
|
||||
{Content: "Как можно добраться до Сочи?"},
|
||||
{Content: "Какая погода в Питере?"},
|
||||
}
|
||||
if got := TravelSearchClarification("Найди билеты", noisyContext); got != "Из какого города вылетать в Сочи и на какую дату?" {
|
||||
t.Fatalf("unrelated weather history must not replace travel destination, got %q", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestInterpretUtteranceDirectiveRecordsOutcomeWithoutExecution(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user