1.2 KiB
1.2 KiB
APBO Boat Agent
基于 LangChain + LangGraph 的问数 Agent 项目,提供 SQL 生成、执行与流式返回能力。
核心流程
完整流程图见 docs/README.md。
主链路:
analyze_intent -> process_input -> normalize_input -> classify_query_mode -> match_table -> load_sql_prompt -> build_sql_plan -> generate_sql -> execute_sql -> generate_response -> update_context
顶层模块
- agent/README.md:Agent 状态与节点编排
- api/README.md:FastAPI 接口层
- config/README.md:配置与提示词资源
- docs/README.md:核心流程图
- examples/README.md:最小示例
- k8s/README.md:部署清单
- schemas/README.md:请求响应模型
- scripts/README.md:调试与同步脚本
- services/README.md:基础服务层
- tests/README.md:自动化测试
- tools/README.md:工具实现
- workflows/README.md:工作流管理
快速启动
pip install -r requirements.txt
python server.py