Scripting memory not matching utterances on botium-cli

感情迁移 提交于 2019-12-11 17:33:16

问题


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:


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!



来源:https://stackoverflow.com/questions/54153962/scripting-memory-not-matching-utterances-on-botium-cli

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!