Closed AR210689 closed 2 years ago
The issue here is that a text
slot does not accept values
; only categorical
slots do.
e.g. this:
garment_type: #possible values for different garment types-- all inclusive
type: text #can take name of any of the garment types the website hosts
influence_conversation: false #can be modified later
mappings:
- type: from_entity
entity: customer_garment_choice
values:
- formal_shirts
- casual_shirts
- trousers
- t_shirts
- shorts
- shoes
- cargo_shorts
- women_clothes
needs to be categorical
to make use of a specific list of values
It worked! Silly mistake. Thank you very much! This error message should be changed though.
It would help if the slot name was listed, yes. Glad it worked.
Rasa Open Source version
3.0.0
Rasa SDK version
3.0.3
Rasa X version
No response
Python version
3.7
What operating system are you using?
OSX
What happened?
I have the following domain.yml file for a simple chatbot, and the error I am getting is very unhelpful in its message. I keep getting the following error:
slot = slot_class(slot_name, **slot_dict[slot_name]) TypeError: init() got an unexpected keyword argument 'values'
I have pasted the domain file here. Please look into this.
Thank you!
Command / Request
Relevant log output