You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a dialog that can start several different dialogs, but is limited to have one on_process_result() callback. This is why to distinguish these calls I pass start_data in form of {"intent": "enter_name", "input": ...} and my callback looks like:
matchstart_data["intent"]:
case"enter_name":
# process input of the name field
...
case"enter_text":
# process input of the text field
...
This can produce long and complex callbacks. I wonder if there can be a cleaner way to process results. Thinking a while I've come up with two proposals:
I have a dialog that can start several different dialogs, but is limited to have one
on_process_result()
callback. This is why to distinguish these calls I passstart_data
in form of{"intent": "enter_name", "input": ...}
and my callback looks like:This can produce long and complex callbacks. I wonder if there can be a cleaner way to process results. Thinking a while I've come up with two proposals:
The text was updated successfully, but these errors were encountered: