refactor: streamline core API surface

This commit is contained in:
David Snelling 2025-10-04 08:51:49 -07:00
parent 0d54da1471
commit 75ae282861
12 changed files with 4 additions and 3402 deletions

View file

@ -88,7 +88,6 @@ export class Brainy<T = any> implements BrainyInterface<T> {
private _extractor?: NeuralEntityExtractor
private _tripleIntelligence?: TripleIntelligenceSystem
private _vfs?: VirtualFileSystem
private _conversation?: any // ConversationManager (lazy-loaded)
// State
private initialized = false
@ -1671,31 +1670,6 @@ export class Brainy<T = any> implements BrainyInterface<T> {
return this._vfs
}
/**
* Conversation Manager API - Infinite Agent Memory
*
* Provides conversation and context management for AI agents:
* - Save and retrieve conversation messages
* - Semantic search across conversation history
* - Smart context retrieval with relevance ranking
* - Artifact management (code, files, documents)
* - Conversation themes and clustering
*
* @returns ConversationManager instance
* @example
* const conv = brain.conversation
* await conv.saveMessage("How do I implement auth?", "user", { conversationId: "conv_123" })
* const context = await conv.getRelevantContext("authentication implementation")
*/
conversation() {
if (!this._conversation) {
// Lazy-load ConversationManager to avoid circular dependencies
const { ConversationManager } = require('./conversation/conversationManager.js')
this._conversation = new ConversationManager(this)
}
return this._conversation
}
/**
* Data Management API - backup, restore, import, export
*/