Scripting memory not matching utterances on botium

2019-08-29 06:33发布

I am using botium-cli 0.0.40 and I have the following convo file (AGE.convo.txt):

#me
what is your age?

#bot
AGEA_UTT

There is also a utterance file (AGEA_UTT.utterances.txt):

AGEA_UTT
['I am $months months old.']
['I am $years years old.']
['I am 5 years old.']

For an answer: ['I am 5 years old.'] it passes. But for ['I am 6 years old.'] it fails:

TranscriptError: Error: convos/AGE.convo.txt: Expected bot response (on Line 4: #me - what is your age? ) "['I am 6 years old.']" to match one of "['I am $months months old.'],['I am $years years old.'],['I am 5 years old.']"

Is it a bug? Do I have to change any Botium settings? The wiki doesn't mention any need for that: https://github.com/codeforequity-at/botium-core/wiki/Botium-Scripting#scripting-memory

Thanks in advance.

1条回答
Explosion°爆炸
2楼-- · 2019-08-29 07:14

You have to set the SCRIPTING_ENABLE_MEMORY capability to true to enable the memory.

Attention: the build you mentioned doesn't yet allow scripting memory expressions in utterances! This is part of the next build scheduled for upcoming Monday!

查看更多
登录 后发表回答