You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chatElementRef.addMessage({ html: htmlContent, role: 'assistant'}) chatElementRef.addMessage({ html: htmlContent, role: 'assistant'}) chatElementRef.addMessage({ html: htmlContent, role: 'assistant'}) signals.onResponse({ text: finalAnswer, role:'assistant' });
To achieve returning multiple messages, I used the above method, but when executing clearMessages(), it cannot clear the message added by signals.onResponse.
Is there a better method?
The text was updated successfully, but these errors were encountered:
chatElementRef.addMessage({ html: htmlContent, role: 'assistant'})
chatElementRef.addMessage({ html: htmlContent, role: 'assistant'})
chatElementRef.addMessage({ html: htmlContent, role: 'assistant'})
signals.onResponse({ text: finalAnswer, role:'assistant' });
To achieve returning multiple messages, I used the above method, but when executing clearMessages(), it cannot clear the message added by signals.onResponse.
Is there a better method?
The text was updated successfully, but these errors were encountered: