general-runtime
general-runtime copied to clipboard
feat: move runtime to turn handler context (PL-000)
Currently, we don't have context to your diagram/current node until we reach the runtime turn handler. This change moves the loading of the "runtime" component (not turn handler), to the turn "context" instead. This lets us check the runtime during any turn handler. This is then used to determine if we should skip the NLU/dialog management turn handlers if we're on a new listen step. If these steps are skipped, the node handler will end up with a text request rather than an intent request, allowing us to do intent classification at the individual node level. The goal here being to reduce the scope of changes needed, as well as reducing the risk of changing old behaviour.