name, an on_open and on_close methods. The on_open is called when an agent is started with this device, and when stopped, on_close is called.
Template
This template, once activated, sends data every 1 second to the agent as if the user was talking.Data types
The BASIC agent performs better with properly formatted inputs, so we provide the data_type parameter to send data on the right channels. Currently,data_type can either be chat_in or custom.
If you set data_type="custom"when sending feedback, format your message preferably as a stringified json object.
