Spaces:
Runtime error
Runtime error
File size: 1,906 Bytes
8085285 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | ```mermaid
graph TB
subgraph CLIENT["🖥️ Frontend — React + Vite SPA"]
PAGES["Pages\nSpecs · Workflow · Chat · History\nAssets · Settings · Usage"]
CTX["AppContext\nGlobal State"]
CTX -.-> PAGES
end
subgraph BACKEND["⚙️ Backend — FastAPI"]
MW["Middleware\nCORS · JWT Auth · Rate Limiter · Logger"]
subgraph ROUTES["REST API /api/v1"]
PUB["/auth\n🔓 Public"]
PROT["/specs · /sessions · /execution\n/history · /chat · /assets\n/usage · /settings\n🔐 JWT Protected"]
end
subgraph SERVICES["Service Layer"]
PARSERS["Spec Parsers\nPostman · Swagger"]
CORE["Core Services\nLLM Planner · API Executor\nResponse Analyzer · Chat Assistant\nAsset Service · Usage Service"]
end
subgraph LLM_INT["🔗 LLM Integration — LangChain"]
FAC["LLMClientFactory\nRegistry · Task Resolver"]
CLIENTS["Provider Clients\nMistral · OpenAI · Anthropic\nGemini · Groq"]
FAC --> CLIENTS
end
MW --> ROUTES
PROT --> PARSERS
PROT --> CORE
CORE --> FAC
end
subgraph DATA["🗄️ Data Layer"]
PG[("PostgreSQL\nspec_documents · sessions\nexecution_history · chat_sessions\nassets · collections\nllm_providers · llm_task_config · llm_usage")]
FS["File Storage\nLocal / Supabase\naudio · video · images · docs · specs"]
ALB["Alembic Migrations"]
ALB -.->|schema upgrades| PG
end
LLM_EXT["🤖 LLM APIs\nMistral · OpenAI · Anthropic\nGoogle Gemini · Groq"]
TARGET["🌐 Target REST APIs\nUser-specified Base URL"]
%% Global connections
CLIENT -->|"HTTPS · Bearer JWT"| MW
CORE -->|"SQLAlchemy ORM"| PG
CORE -->|"File I/O"| FS
CLIENTS -->|"API calls"| LLM_EXT
CORE -->|"HTTP Requests"| TARGET
```
|