(newPrompt: string)
| 40 | .filter(message => message.author === 'agent').length); |
| 41 | |
| 42 | addUserPrompt(newPrompt: string): void { |
| 43 | if (!this.magicAiService.isStreamComplete()) { |
| 44 | return; |
| 45 | } |
| 46 | |
| 47 | this.magicAiService.prompt.set(newPrompt); |
| 48 | this.router.navigate([`/magic/${this.nextIndex()}`]); |
| 49 | this.addToConversation({ author: 'user', text: newPrompt }); |
| 50 | } |
| 51 | |
| 52 | addToConversation(message: Message): void { |
| 53 | this.conversationHistory.update(history => { |
no test coverage detected