GenieDialog_signal API

GenieDialog_Signal API can be used to signal the different actions to any active dialog’s in-progress query.

Genie Dialog Signal diagram.

GenieDialog_Signal API

Tutorial on how to use signal action in genie-t2t-run

Note

For reference implementation on how to use GenieDialog_Signal API checkout genie-t2t-run source in the example at ${QNN_SDK_ROOT}/examples/Genie/genie-t2t-run.

In genie-t2t-run, we can use “–action” to specify the action that needs to be signaled. Also to mimic the multi-threaded behaviour sleep can be tuned.

For example:

./genie-t2t-run -c llama2-7b-htp.json
                -p "Tell me about Qualcomm."
                --action ABORT --sleep 5000