Create a new IQ message, spurring IQ to respond.
The response is streamed back as a JSONL stream, ie. a stream of JSON objects separated by newlines. Each object contains a messageId to correlate different messages, a text chunk response, a state indicating the current state of the response generation, a chart JSON and/or a done flag indicating the response is complete.
npm install @luzmo/nodejs-sdk{
"state": "query"
}
{
"messageId": "6c444fea-c70e-4e35-973d-6edc2da0029c",
"chunk": "The"
}
{
"messageId": "6c444fea-c70e-4e35-973d-6edc2da0029c",
"chunk": " trend"
}
{
"messageId": "6c444fea-c70e-4e35-973d-6edc2da0029c",
"chunk": "..."
}
{
"messageId": "2a5c612f-4b90-42fc-9c9c-6cf069451a91",
"done": true
}