lis
(san)
1
Hi,
I’m trying to set mappings for slot in my domain file, but I end up getting this error. Can someone tell me what mistake I’m making?
P.S:
Rasa Version : 2.8.13
Minimum Compatible Version: 2.8.9
Rasa SDK Version : 2.8.4
Rasa X Version : 0.39.3
Python Version : 3.8.8
Can you show your domain file and the specific error, please?
lis
(san)
3
version: '2.0'
config:
store_entities_as_slots: false
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true
intents:
- user_details:
use_entities: true
- inform:
use_entities: true
entities:
- cc_type
- cc_num
slots:
cc_num:
type: rasa.shared.core.slots.ListSlot
initial_value: null
auto_fill: true
influence_conversation: true
mappings:
- type: custom
cc_type:
type: rasa.shared.core.slots.TextSlot
initial_value: null
auto_fill: true
influence_conversation: true
mappings:
- type: custom
responses:
utter_ask_cc_num:
- text: Please provide valid cc number(s)
utter_ask_cc_type:
- text: Please provide cc type
actions:
- action_user_details
- validate_user_details_form
forms:
user_details_form:
required_slots:
cc_num:
- entity: cc_num
intent: user_details
type: from_entity
- entity: cc_num
intent: inform
type: from_entity
cc_type:
- entity: cc_type
intent: user_details
type: from_entity
- entity: cc_type
intent: inform
type: from_entity
this is my domain.yml file
when I run rasa train, this is the error I’m getting -
TypeError: __init__() got an unexpected keyword argument 'mappings'
You are using Rasa 3.x format with Rasa 2.x
For the Rasa 2.x docs, go to rasa.com/docs/rasa/2.x.
1 Like
lis
(san)
5
Aah, my bad!
So I guess rasa 2.x doesn’t have explicit mappings from what I read.
1 Like