Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Konversation nesting #13

Open
rekire opened this issue Jan 7, 2020 · 1 comment
Open

Konversation nesting #13

rekire opened this issue Jan 7, 2020 · 1 comment
Labels
enhancement New feature or request Version 2.1

Comments

@rekire
Copy link
Contributor

rekire commented Jan 7, 2020

It would be helpful to have nested konversations, so that if you have e.g. a common reprompt that you can simply include it.

@rekire rekire added enhancement New feature or request Version 2.1 labels Jan 7, 2020
@rekire
Copy link
Contributor Author

rekire commented Apr 6, 2020

As workaround you can use this extension function:

operator fun Output.plus(output: Output) = Output(
    displayText = (displayText + "\n" + output.displayText).trimEnd(),
    ssml = ssml.removeSuffix("</speak>") + "\n" + output.ssml.removePrefix("<speak>"),
    extras = extras + output.extras,
    reprompts = reprompts + output.reprompts,
    suggestions = suggestions + output.suggestions)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request Version 2.1
Projects
None yet
Development

No branches or pull requests

1 participant