diff options
Diffstat (limited to 'packages/core/src')
| -rw-r--r-- | packages/core/src/core/geminiChat.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/core/src/core/geminiChat.ts b/packages/core/src/core/geminiChat.ts index d15f9d1a..3bba1805 100644 --- a/packages/core/src/core/geminiChat.ts +++ b/packages/core/src/core/geminiChat.ts @@ -290,6 +290,13 @@ export class GeminiChat { } /** + * Clears the chat history. + */ + clearHistory(): void { + this.history = []; + } + + /** * Adds a new entry to the chat history. * * @param content - The content to add to the history. |
