Original Architecture v1
Overview
Core Architecture
Enhanced Components
LLM Router
interface LLMTask {
type: 'text' | 'code' | 'analysis' | 'creative';
complexity: 'simple' | 'medium' | 'complex';
platform: string;
requiresVision?: boolean;
}
class LLMRouter {
private providers: Map<string, LLMProvider>;
private fallbackChain: string[];
async selectProvider(task: LLMTask): Promise<LLMProvider> {
// Route based on task requirements
if (task.requiresVision) {
return this.providers.get('gpt-4o')!;
}
if (task.type === 'code' && task.complexity === 'complex') {
return this.providers.get('claude-3.5-sonnet')!;
}
if (task.complexity === 'simple') {
return this.providers.get('gpt-4-turbo')!;
}
return this.providers.get('claude-3.5-sonnet')!; // Default
}
}Image Generation System
Dual-Layer Memory Architecture
Memory Isolation Strategy
Platform-Specific Memory
Shared Memory
Enhanced Memory Flow
Database Configuration
Supabase Schema Design
Platform-Specific Tables with Image Support
Indexes for Performance
Pinecone Vector Database Configuration
Index Structure
Namespace Organization
Metadata Schema
LLM Provider Configuration
OpenRouter Integration
Provider Selection Logic
Component Details
Agent Runtime
Memory Manager
Context Building Strategy
Data Flow Patterns
Message Processing Pipeline
Memory Storage Strategy
Technology Stack
MVP Scope
Cost Optimization Strategy
LLM Cost Management
Image Generation Limits
Last updated