(content: string | UserContent)
| 146 | * Appends a user message to the session history. |
| 147 | */ |
| 148 | export function appendUserMessage(content: string | UserContent): void { |
| 149 | if (!session) return; |
| 150 | session.messages.push({ role: 'user', content }); |
| 151 | saveToDisk(); |
| 152 | } |
| 153 | |
| 154 | /** |
| 155 | * Appends LLM response messages to the session history. |
no test coverage detected