Recognize self capability questions #374

Merged
m merged 1 commits from codex/household-travel-query-fix into main 2026-08-25 16:54:32 +00:00
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -661,7 +661,7 @@ func informationRequestKind(message string, candidate interaction.SemanticCandid
if cognitiveSubject && inventoryRequest && inventoryCue {
return interaction.InformationRequestCognitiveModelInventory
}
capabilitySubject := containsStemInTokens(tokens, "уме", "возможност", "способн", "capabilit")
capabilitySubject := containsStemInTokens(tokens, "уме", "возможност", "способн", "capabilit") || (containsMeaningfulInterrogative(tokens) && containsToken(tokens, "можешь"))
if inquiry && capabilitySubject {
return interaction.InformationRequestCapabilityInventory
}
+1
View File
@@ -120,6 +120,7 @@ func TestInformationRequestsAreClassifiedOnceByInteraction(t *testing.T) {
{"какие модели доступны?", interaction.InformationRequestCognitiveModelInventory},
{"назови доступные модели", interaction.InformationRequestCognitiveModelInventory},
{"какая модель отвечает?", interaction.InformationRequestCognitiveCurrentModel},
{"что ты можешь сделать без внешних моделей?", interaction.InformationRequestCapabilityInventory},
{"что ты умеешь?", interaction.InformationRequestCapabilityInventory},
{"проверь состояние локального канала", interaction.InformationRequestCognitiveChannelStatus},
{"нет связи с ИИ, восстанови канал", interaction.InformationRequestCognitiveRecovery},