feedback-issue: 拆三步、入口意图门、消息可靠性、日志脱敏与噪音过滤 (#5810)

This commit is contained in:
InfinityPacer
2026-05-21 13:57:12 +08:00
committed by GitHub
parent 4c64b1769d
commit 0245c8db80
13 changed files with 2917 additions and 150 deletions

View File

@@ -279,7 +279,9 @@ class MoviePilotTool(BaseTool, metaclass=ABCMeta):
"""
设置与当前 Agent 共享的上下文。
"""
self._agent_context = agent_context or {}
# 空 dict 也是合法共享上下文;不能用 ``or {}``,否则每个工具会拿到
# 独立的新 dict跨工具状态例如质量门槛拒绝标记无法传播。
self._agent_context = {} if agent_context is None else agent_context
async def _check_permission(self) -> Optional[str]:
"""