UNPKG

universal-ai-brain

Version:

🧠 UNIVERSAL AI BRAIN 3.3 - The world's most advanced cognitive architecture with 24 specialized systems, MongoDB 8.1 $rankFusion hybrid search, latest Voyage 3.5 embeddings, and framework-agnostic design. Works with Mastra, Vercel AI, LangChain, OpenAI A

31 lines (27 loc) • 1.03 kB
import { Mastra } from '@mastra/core'; import { UniversalAIBrain } from 'universal-ai-brain'; import { cognitiveTestAgent } from './agents/cognitive-test-agent'; import { memoryTestAgent } from './agents/memory-test-agent'; import { reasoningTestAgent } from './agents/reasoning-test-agent'; import { emotionalTestAgent } from './agents/emotional-test-agent'; import { socialTestAgent } from './agents/social-test-agent'; import { temporalTestAgent } from './agents/temporal-test-agent'; import { metaTestAgent } from './agents/meta-test-agent'; // Initialize Universal AI Brain with real MongoDB Atlas const brain = UniversalAIBrain.forOpenAI({ mongoUri: process.env.MONGODB_URI, apiKey: process.env.OPENAI_API_KEY, databaseName: process.env.TEST_DATABASE_NAME || 'cognitive_systems_test' }); export const mastra = new Mastra({ agents: { cognitiveTestAgent, memoryTestAgent, reasoningTestAgent, emotionalTestAgent, socialTestAgent, temporalTestAgent, metaTestAgent } }); export { brain };