// Editor.Ai.Storage manages persistent AI chat data across plugin sessions. // The chat id is an arbitrary string the plugin uses to scope its own // chats — pick any stable id (here a reverse-DNS plugin namespace). // Use deleteChat() to clean up an entry when it is no longer needed. constchatId = 'com.myPlugin.draft-chat'; Editor.Ai.Storage.deleteChat(chatId); console.log('Deleted AI chat entry:', chatId);
Manage AI chat history and sessions.
Example