英文:
What will happen if I clear the slots of a form in RASA?
问题
我想在表单上进行迭代,直到插槽的值不再为true。
我知道表单将继续询问其必填插槽中的问题,直到它们填满。
因此,如果我在表单末尾清除所有插槽,表单会再次从首次提及的插槽开始吗?
感谢任何帮助。谢谢。
英文:
I want to iterate over a form until a slot value does not become true.
I know that a form will continue to ask the questions in its required slots until they are filled.
So, if I clear all the slots at the end of the form, will the form start over from the first mentioned slots again?
Any help is appreciated. Thanks.
答案1
得分: 1
你可以在表单验证器方法中检查槽值,并根据这些值采取相应的措施。如果你在验证器上重置所有槽位,表单将会再次要求输入“required_slots”。
英文:
You can check the slot values in the form validator method and act accordingly based on the values. If you reset all slots on the validator the form will ask again for required_slots
.
答案2
得分: 1
如果您在最后一个槽位验证中清除了所有槽位(将所有Slot_Value的值设置为None
),则表单验证将从第一个槽位重新开始。
英文:
If you clear all the slots (Setting all Slot_Value's to None
) at the last Slot Validation the Form Validation will start from the first Slot again.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论