refactor(backend): register ontology and orchestrator routers

- router.py: import and register ontology_router and orchestrator_router
- openapi.py: add ontology and orchestrator tags to OpenAPI documentation
- agent_runs.py: extend agent runs service with additional functionality
- test_openapi_schema.py: update OpenAPI schema tests
This commit is contained in:
caoxiaozhu
2026-05-12 01:26:13 +00:00
parent 22d47cbf2b
commit 441e27145d
4 changed files with 65 additions and 2 deletions

View File

@@ -27,6 +27,8 @@ X-Financial 后端 OpenAPI 文档。
- 员工目录
- 报销单
- 知识库与 ONLYOFFICE
- 语义本体解析
- Orchestrator 统一调度
- 系统设置与模型连通性
- Agent 资产、运行日志、审计日志
""".strip()
@@ -57,6 +59,14 @@ OPENAPI_TAGS = [
"name": "knowledge",
"description": "知识库文件管理、内容访问与 ONLYOFFICE 集成接口。",
},
{
"name": "ontology",
"description": "Day 3 语义本体解析接口,把自然语言问题稳定转换为 8 个核心字段。",
},
{
"name": "orchestrator",
"description": "Day 4 Orchestrator 统一入口,负责语义、权限、路由、工具调用和降级。",
},
{
"name": "settings",
"description": "系统设置、模型配置、模型连通性探测和 Hermes 运行时模型配置。",