How meterless/genai-agentos works
GenAI Agents Infrastructure provides a UI and CLI for managing agents, models, files, chats, and workflows, with a backend coordinating persistence and agent execution. A typical interaction enters through the frontend or CLI, reaches backend APIs, and may invoke a master agent through the WebSocket router; the master agent can orchestrate connected agents and return a response with traces. The README documents GenAI, MCP, and A2A agent types. Several runtime links are documented or visible in sampled files; unsampled modules are represented cautiously, without asserting their internal calls.
Main entry points: main.py Backend API · managers.py Connector Managers · routes.py Agent API · ws_connector_manager.py WebSocket Router
Components 23
Backend Services
- Backend API
backend/main.py - Agent API
backend/src/routes/agents/routes.py - Chat API
backend/src/routes/chat/routes.py - Flow API
backend/src/routes/flows/routes.py - File API
backend/src/routes/files/routes.py - Model API
backend/src/routes/llms/routes.py - Token Auth
backend/src/auth/dependencies.py - Redis and Celery
backend/src/celery/celery_app.py
Agent Orchestration
- WebSocket Router
router/connectors/ws_connector_manager.py - Master Agent
master-agent/main.py - Connector Managers
master-agent/connectors/managers.py
Persistence
- Agent Repository
backend/src/repositories/agent.py - Chat Repository
backend/src/repositories/chat.py - Flow Repository
backend/src/repositories/flow.py - File Repository
backend/src/repositories/files.py - Model Repository
backend/src/repositories/model_config.py - PostgreSQL
Agent Integrations
- GenAI Agents
- MCP Servers
- A2A Servers
Other components
- User
Connections 25
- User → Web UI: uses
README.md - User → CLI: registers agents
README.md - Web UI → Backend API: calls APIs
- CLI → Backend API: calls APIs
- Backend API → Agent API: mounts API
- Backend API → File API: mounts files
backend/main.py - Backend API → WebSocket Router: connects WebSocket
- Backend API → Redis and Celery: configures jobs
- Agent API → Agent Repository: queries agents
backend/src/routes/agents/routes.py - Agent API → Token Auth: authenticates
backend/src/routes/agents/routes.py - Chat API → Chat Repository: uses repository
backend/src/routes/chat/routes.py - Flow API → Flow Repository: uses repository
backend/src/routes/flows/routes.py - File API → File Repository: reads and writes
backend/src/routes/files/routes.py - Model API → Model Repository: manages configs
backend/src/routes/llms/routes.py - Agent Repository → PostgreSQL: persists agents
- Chat Repository → PostgreSQL: persists chats
- Flow Repository → PostgreSQL: persists flows
- File Repository → PostgreSQL: stores metadata
- Model Repository → PostgreSQL: persists configs
- WebSocket Router → Master Agent: routes messages
- WebSocket Router → Backend API: forwards registrations
router/connectors/ws_connector_manager.py - Master Agent → Connector Managers: invokes connectors
- Connector Managers → MCP Servers: calls tools
master-agent/connectors/managers.py - Connector Managers → A2A Servers: sends messages
master-agent/connectors/managers.py - Connector Managers → GenAI Agents: sends requests
master-agent/connectors/managers.py