- Introduced `MYSQL_CORE_DATABASE` in `.env.example` and `settings.py` for core database configuration. - Added `CoreReadOnlyRepository` for read-only access to the `jinrong_core` database. - Updated `AGENTS.md`, `README.md`, and various documentation files to reflect new agent onboarding processes and project structure. - Revised requirements in `requirements.txt` to include `langgraph` and `langchain-core`. - Enhanced `FLOW.md` with local bootstrap instructions for setting up the core simulation environment. - Added new scripts for database creation and seeding for the core simulation library. - Improved overall documentation for clarity on project architecture and memory management. - Updated `TODO.md` to reflect current development priorities and tasks.
1.1 KiB
1.1 KiB
Core 模拟库 · 初始化
库名
jinrong_core· 与jinrong_agent同 MySQL 实例 · Agent 只读
一键重置(Windows)
.\scripts\core\reset.ps1
手动顺序
mysql -u root -p < scripts/core/00-create-database.sql
mysql -u root -p < scripts/core/01-ddl.sql
mysql -u root -p < scripts/core/02-seed-base.sql
mysql -u root -p < scripts/core/03-seed-customers.sql
mysql -u root -p < scripts/core/04-seed-holdings.sql
mysql -u root -p < scripts/core/05-seed-trades.sql
mysql -u root -p < scripts/core/06-seed-nav.sql
# Agent 库(若未建)
mysql -u root -p < docs/项目框架设计/表设计/01-mysql-共用底座.sql
python scripts/sync/sync_advisor_rel.py
python scripts/sync/sync_neo4j.py
种子规模(当前)
| 类型 | 数量 |
|---|---|
| 客户 | 28 |
| 理财代理人 | 5 |
| 分析/风控/合规/运营 | 2+2+2+1 |
| 双角色 staff | 1(STAFF-10091 advisor+compliance) |
| 产品 | 12 |
| 持仓记录 | ~45 |
| 交易 | 25+ |