refactor: refactor of backend

This commit is contained in:
sophie committed 2026-09-28 14:52:28 +08:00
1 parent d4cb8c5def
commit 14e5af0c9c
55 files changed
+2251 -1805

No files matched your search

+13 -4
View File
@@ -1,11 +1,20 @@
"""
backend/app/api/tools/__init__.py
用途:Dify HTTP Tool API Blueprint 聚合。
逻辑:re-export shipping_notice、file_check、maintenance tools。
用途:Dify / Chatflow HTTP Tool API Blueprint 聚合。
依赖:tools 子模块(file_check、shipping_notice、maintenance、agent_runtime_context、procurement_contract)。
逻辑:register_blueprints 只从本包导入 Tool Blueprint;真实现已收口到本目录,根路径 *_tools.py 仅为兼容 shim。
"""
from app.api.tools.shipping_notice import shipping_notice_bp # noqa: F401
from app.api.tools.agent_runtime_context import agent_runtime_context_bp # noqa: F401
from app.api.tools.file_check import file_check_bp # noqa: F401
from app.api.tools.maintenance import maintenance_tool_bp # noqa: F401
from app.api.tools.procurement_contract import procurement_contract_bp # noqa: F401
from app.api.tools.shipping_notice import shipping_notice_bp # noqa: F401
__all__ = ['shipping_notice_bp', 'file_check_bp', 'maintenance_tool_bp']
__all__ = [
'agent_runtime_context_bp',
'file_check_bp',
'maintenance_tool_bp',
'procurement_contract_bp',
'shipping_notice_bp',
]