- 新增 StewardGraphPlannerService,用 LangGraph 状态图编排意图识别→流程判断→模型/规则分支→兜底,替代原 planner 内线性调用 - 新增 StewardGraphRuntimeService 编排运行时决策与槽位决策;StewardActionContracts/Executor 统一动作合约与执行 - steward_intent_agent/application_fact_resolver/runtime_chat 适配图执行器,config 暴露图相关开关 - pyproject/uv.lock 新增 langgraph 依赖 - 新增 graph_planner/graph_runtime/action_executor 测试,更新 intent_agent/planner/fact_resolver/runtime_chat/reimbursement 测试
55 lines
1.2 KiB
TOML
55 lines
1.2 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=68", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "x-financial-server"
|
|
version = "0.1.0"
|
|
description = "Backend service for X-Financial reimbursement and approval platform."
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"fastapi>=0.115.0,<1.0.0",
|
|
"uvicorn[standard]>=0.30.0,<1.0.0",
|
|
"sqlalchemy>=2.0.36,<3.0.0",
|
|
"alembic>=1.14.0,<2.0.0",
|
|
"psycopg[binary]>=3.2.0,<4.0.0",
|
|
"PyJWT>=2.9.0,<3.0.0",
|
|
"pydantic-settings>=2.6.0,<3.0.0",
|
|
"python-dotenv>=1.0.1,<2.0.0",
|
|
"email-validator>=2.2.0,<3.0.0",
|
|
"python-multipart>=0.0.20,<1.0.0",
|
|
"jieba>=0.42.1,<0.43.0",
|
|
"langgraph>=1.2.0,<2.0.0",
|
|
"openpyxl>=3.1.5,<4.0.0",
|
|
"lightrag-hku>=1.4.16,<1.5.0",
|
|
"qdrant-client>=1.18.0,<2.0.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.3.0,<9.0.0",
|
|
"httpx>=0.28.0,<1.0.0",
|
|
"ruff>=0.8.0,<1.0.0",
|
|
]
|
|
redis = [
|
|
"redis>=5.2.0,<6.0.0",
|
|
]
|
|
|
|
[tool.setuptools]
|
|
package-dir = {"" = "src"}
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
|
|
[tool.pytest.ini_options]
|
|
pythonpath = ["src"]
|
|
testpaths = ["tests"]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py311"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "B", "UP"]
|