in src/components/agentic_chat/agentic_duo_chat.stories.js [158:172]
onSendChatPrompt(prompt) {
const newPrompt = {
...MOCK_USER_PROMPT_MESSAGE,
contentHtml: '',
content: prompt,
requestId: this.requestId,
};
this.loggerInfo += `New prompt: ${JSON.stringify(newPrompt)}\n\n`;
if ([CHAT_CLEAR_MESSAGE].includes(prompt)) {
this.msgs = [];
} else {
this.msgs.push(newPrompt);
this.promptInFlight = true;
}
},