1
0
mirror of https://github.com/MarkParker5/STARK.git synced 2025-07-02 22:36:54 +02:00

infinite context problem solved, add question type

This commit is contained in:
MarkParker5
2020-10-31 15:29:58 +02:00
parent 8c5d6215f0
commit 0126e93e5c
7 changed files with 99 additions and 32 deletions

View File

@ -227,9 +227,9 @@ class Command(ABC):
for pattern in obj.getPatterns():
if match := re.search(re.compile(Command.compilePattern(pattern)), string):
return {
'cmd': obj,
'params': {**match.groupdict(), 'string':string,},
}
'cmd': obj,
'params': {**match.groupdict(), 'string':string,},
}
# return Question-Answer system if command not found
return {
'cmd': Command.QA,