Last active
November 30, 2018 20:49
-
-
Save maxbrenner-ai/215430464aa796f0c71eebba1881f033 to your computer and use it in GitHub Desktop.
dialogue configuration for agent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Possible inform and request slots for the agent | |
agent_inform_slots = ['moviename', 'theater', 'starttime', 'date', 'genre', 'state', 'city', 'zip', 'critic_rating', | |
'mpaa_rating', 'distanceconstraints', 'video_format', 'theater_chain', 'price', 'actor', | |
'description', 'other', 'numberofkids'] | |
agent_request_slots = ['moviename', 'theater', 'starttime', 'date', 'numberofpeople', 'genre', 'state', 'city', 'zip', | |
'critic_rating', 'mpaa_rating', 'distanceconstraints', 'video_format', 'theater_chain', 'price', | |
'actor', 'description', 'other', 'numberofkids'] | |
# Possible actions for agent | |
agent_actions = [ | |
{'intent': 'done', 'inform_slots': {}, 'request_slots': {}}, # Triggers closing of conversation | |
{'intent': 'match_found', 'inform_slots': {}, 'request_slots': {}} | |
] | |
for slot in agent_inform_slots: | |
agent_actions.append({'intent': 'inform', 'inform_slots': {slot: 'PLACEHOLDER'}, 'request_slots': {}}) | |
for slot in agent_request_slots: | |
agent_actions.append({'intent': 'request', 'inform_slots': {}, 'request_slots': {slot: 'UNK'}}) | |
# Rule-based policy request list | |
rule_requests = ['moviename', 'starttime', 'city', 'date', 'theater', 'numberofpeople'] | |
# These are possible inform slot keys that cannot be used to query | |
no_query_keys = ['numberofpeople', usersim_default_key] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment