docs/PROJECT_MODULES.md
Astron Agent is an enterprise-grade, commercially-friendly Agentic Workflow development platform that integrates AI workflow orchestration, model management, AI & MCP tools, RPA automation, and team collaboration features.
Module Path: console/frontend/
Language: TypeScript + React
Main Responsibilities:
Tech Stack: React 18, TypeScript 5, Vite 5, Ant Design 5, Tailwind CSS, ReactFlow, Recoil/Zustand
Module Path: console/backend/
Language: Java
Main Responsibilities:
Tech Stack: Spring Boot 3.5.4, MyBatis Plus 3.5.7, Spring Security, OAuth2
Sub-modules:
Module Path: core/agent/
Language: Python
Main Responsibilities:
Tech Stack: FastAPI, SQLAlchemy 2.0, Pydantic, OpenTelemetry
Architecture Design: Follows DDD (Domain-Driven Design) with API layer, service layer, domain layer, and repository layer
Module Path: core/workflow/
Language: Python
Main Responsibilities:
Tech Stack: FastAPI, SQLModel, SQLAlchemy 2.0, Kafka (event streaming), LangChain
Event Mechanism: Event communication via Kafka Topic workflow-events
Module Path: core/knowledge/
Language: Python
Main Responsibilities:
Tech Stack: FastAPI, RAGFlow SDK, OpenAI API, SQLModel, Redis
Event Mechanism: Event communication via Kafka Topic knowledge-events
Module Path: core/memory/
Language: Python
Main Responsibilities:
Tech Stack: Python, database abstraction layer
Module Path: core/tenant/
Language: Go
Main Responsibilities:
Tech Stack: Go 1.23, Gin framework, MySQL
Design Philosophy: Implemented in Go for high performance and low memory overhead
Module Path: core/plugin/aitools/
Language: Python
Main Responsibilities:
Tech Stack: FastAPI, HTTP Client
Module Path: core/plugin/rpa/
Language: Python
Main Responsibilities:
Tech Stack: FastAPI, RPA SDK
Module Path: core/plugin/link/
Language: Python
Main Responsibilities:
Tech Stack: FastAPI, HTTP Client
Module Path: core/common/
Language: Python
Main Responsibilities:
Tech Stack: Python, SQLModel, Redis Client, Kafka Client, OpenTelemetry
Core Value: Provide unified infrastructure abstraction for all Python microservices
workflow-events - Workflow eventsknowledge-events - Knowledge eventsagent-events - Agent eventsUI Layer
└── Console Frontend (React/TS)
↓ HTTP/REST/SSE
Console Backend Layer
└── Console Backend (Java Spring Boot)
↓ HTTP/REST
Core Microservices Layer
├── Agent Service (Python FastAPI)
├── Workflow Service (Python FastAPI)
├── Knowledge Service (Python FastAPI)
├── Memory DB Service (Python)
├── Tenant Service (Go Gin)
├── Plugin: AI Tools (Python FastAPI)
├── Plugin: Link (Python FastAPI)
└── Plugin: RPA (Python FastAPI)
↓
Common Services Layer
└── Common Module (Python)
↓
Data & Messaging Layer
├── MySQL (Relational Database)
├── Redis (Cache/Session)
├── Kafka (Event Streaming)
└── MinIO (Object Storage)
↓
External Services
├── LLM Providers (Large Language Models)
├── IFLYTEX API (iFLYTEK API)
└── RPA Executors (RPA Executors)
| Communication Path | Protocol | Description |
|---|---|---|
| Frontend → Backend | HTTP/REST, SSE | REST API calls and server-sent events |
| Backend → Core Services | HTTP/REST | RESTful API invocation |
| Core Services ↔ Core Services | Kafka Topics | Asynchronous event-driven communication |
| Core Services → MySQL | JDBC/SQLAlchemy | Data persistence |
| Core Services → Redis | Redis Protocol | Cache read/write, session management |
| Core Services → Kafka | Kafka Protocol | Publish/subscribe events |
| Core Services → MinIO | MinIO API (PUT/GET) | File upload/download |
| Plugins → External Services | HTTP/gRPC | External API calls |
| Module | Dependencies | Dependents |
|---|---|---|
| Console Frontend | Console Backend | - |
| Console Backend | Agent, Workflow, Knowledge, Tenant | Console Frontend |
| Agent Service | Common, Plugins (AI Tools/Link/RPA), Memory | Workflow, Console Backend |
| Workflow Service | Common, Agent, Plugins | Console Backend |
| Knowledge Service | Common, LLM Providers | Agent, Workflow, Console Backend |
| Memory DB Service | Common | Agent |
| Tenant Service | MySQL | All services (tenant context) |
| Plugin: AI Tools | Common, IFLYTEX API | Agent, Workflow |
| Plugin: RPA | Common, RPA Executors | Agent, Workflow |
| Plugin: Link | Common | Agent, Workflow |
| Common Module | MySQL, Redis, Kafka, MinIO | All Python services |
| Layer | Module | Language/Framework | Version |
|---|---|---|---|
| Frontend | Console Frontend | TypeScript + React | TS 5.9.2, React 18.2.0 |
| Backend | Console Backend | Java + Spring Boot | Java 21, Spring Boot 3.5.4 |
| Microservices | Agent Service | Python + FastAPI | Python 3.11+, FastAPI 0.115+ |
| Workflow Service | Python + FastAPI | Python 3.11+, FastAPI 0.115+ | |
| Knowledge Service | Python + FastAPI | Python 3.11+, FastAPI 0.115+ | |
| Memory DB Service | Python | Python 3.11+ | |
| Tenant Service | Go + Gin | Go 1.23, Gin 1.10.1 | |
| Plugins | AI Tools Plugin | Python + FastAPI | Python 3.11+, FastAPI 0.115+ |
| RPA Plugin | Python + FastAPI | Python 3.11+, FastAPI 0.115+ | |
| Link Plugin | Python + FastAPI | Python 3.11+, FastAPI 0.115+ | |
| Common | Common Module | Python | Python 3.11+ |
| Data | MySQL | Relational Database | MySQL 5.7+ |
| Redis | Cache/In-memory DB | Redis 6.0+ | |
| Kafka | Message Queue | Kafka 2.5.0+ | |
| MinIO | Object Storage | MinIO 8.5.10 |
Document Version: v1.0 Last Updated: 2025-11-25