MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / deleteAIChat

Method deleteAIChat

packages/node-runtime/src/ai/chats.ts:578–583  ·  view source on GitHub ↗
(aiChatId: string)

Source from the content-addressed store, hash-verified

576 }
577
578 deleteAIChat(aiChatId: string): boolean {
579 const db = this.getDb()
580 db.prepare('DELETE FROM ai_message WHERE ai_chat_id = ?').run(aiChatId)
581 const result = db.prepare('DELETE FROM ai_chat WHERE id = ?').run(aiChatId)
582 return result.changes > 0
583 }
584
585 // ==================== 消息管理 ====================
586

Callers

nothing calls this directly

Calls 3

getDbMethod · 0.95
runMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected