How focai-acc/foceliza works
High-Level Architecture Components
a) Core System Layer:
• Agent Runtime (from packages/core/src/runtime.ts)
• Memory Manager (from packages/core/src/memory.ts)
• Message Handler System
• Goals Management System
b) Integration Layer:
• Discord
• Twitter/X
• Telegram
• Direct Client
• Auto Client
c) Plugin System:
• Plugin architecture showing major categories:
• Blockchain Plugins (EVM, Solana, Starknet, etc.)
• Service Plugins (Image/Video Generation, Web Search)
• Infrastructure Plugins (TEE, Node)
Data Flow and Storage
a) Database Layer:
• Multiple database adapter options:
• PostgreSQL
• Redis
• SQLite
• Supabase
b) Memory Systems:
• Memory architecture:
• Short-term Memory
• Long-term Storage
• Document Store
• Cache Management
TEE Integration
• Verifiable Runtime Proof Module
• On-Chain Components
• TEE Cluster
• Blockchain Interaction Components
Connection Types
Use different line styles to show:
Implementation Details
Annotations showing:
• Supported model providers (OpenAI, Anthropic, Llama, etc.)
• Key configuration points
• Plugin extension points
• Client integration interfaces
The decentralized nature of the system
Remember to maintain a balance between showing enough detail to understand the system while keeping it clear and readable. Use hierarchical grouping to manage complexity and provide different levels of detail where needed.