feat(shipping-notice): 新增通用解析能力,优化性能并清理遗留废弃代码
This commit is contained in:
1 parent
935bf26fa6
commit
7cfd5d167e
230 files changed
+9337
-10989
No files matched your search
@@ -3,7 +3,7 @@ backend/app/services/chat/action_registry.py
|
||||
|
||||
用途:Chat Turn Action Handler 注册与解析。
|
||||
依赖:turn_context.TurnContext、action_schema.TurnEvent、agent_registry.resolver。
|
||||
逻辑:各领域在 chat_action_handlers / maintenance_chat_actions 等模块注册 handler;turn_runtime 调用 resolve。
|
||||
逻辑:各领域在各自 action handler 模块注册 handler;turn_runtime 调用 resolve。
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -78,8 +78,6 @@ def resolve_action_handler(ctx: TurnContext) -> ChatActionHandler:
|
||||
|
||||
def ensure_handlers_loaded() -> None:
|
||||
"""延迟导入各领域 handler 模块以完成注册。"""
|
||||
from app.services.shipping_notice import chat_action_handlers as _shipping_handlers # noqa: F401
|
||||
from app.services.shipping_notice import chat_action_extended_handlers as _shipping_extended # noqa: F401
|
||||
|
||||
_ = _shipping_handlers
|
||||
_ = _shipping_extended
|
||||
Reference in new issue
Block a user