feat(in-transit-transfer): 实现在途仓自动调拨Agent一期完整功能
包含后端服务层、任务处理器与消费Worker、前端聊天组件、数据库模型与迁移脚本、测试用例,同时新增外部系统连接器框架基础能力并更新相关文档。
This commit is contained in:
1 parent
f3050164d0
commit
6b53b563e7
177 files changed
+17260
-36
No files matched your search
@@ -17,6 +17,7 @@ from app.services.chat.turn_context import TurnContext
|
||||
# action_type 前缀 → 允许的 agent_code 集合;空集合表示不限制。
|
||||
ACTION_AGENT_CODES: dict[str, tuple[str, ...]] = {
|
||||
"shipping.": ("shipping_notice",),
|
||||
"transfer.": ("in_transit_transfer",),
|
||||
}
|
||||
|
||||
|
||||
@@ -79,5 +80,7 @@ def resolve_action_handler(ctx: TurnContext) -> ChatActionHandler:
|
||||
def ensure_handlers_loaded() -> None:
|
||||
"""延迟导入各领域 handler 模块以完成注册。"""
|
||||
from app.services.shipping_notice import chat_action_extended_handlers as _shipping_extended # noqa: F401
|
||||
from app.services.in_transit_transfer import chat_actions as _transfer_actions # noqa: F401
|
||||
|
||||
_ = _shipping_extended
|
||||
_ = _transfer_actions
|
||||
Reference in new issue
Block a user