依旧修pyright喵~
This commit is contained in:
@@ -104,7 +104,7 @@ class ChatterActionManager:
|
||||
log_prefix=log_prefix,
|
||||
shutting_down=shutting_down,
|
||||
plugin_config=plugin_config,
|
||||
action_message=action_message,
|
||||
action_message=action_message, # type: ignore
|
||||
)
|
||||
|
||||
logger.debug(f"创建Action实例成功: {action_name}")
|
||||
@@ -173,6 +173,7 @@ class ChatterActionManager:
|
||||
Returns:
|
||||
执行结果
|
||||
"""
|
||||
assert global_config is not None
|
||||
|
||||
chat_stream = None
|
||||
try:
|
||||
|
||||
@@ -30,6 +30,7 @@ class ActionModifier:
|
||||
|
||||
def __init__(self, action_manager: ChatterActionManager, chat_id: str):
|
||||
"""初始化动作处理器"""
|
||||
assert model_config is not None
|
||||
self.chat_id = chat_id
|
||||
# chat_stream 和 log_prefix 将在异步方法中初始化
|
||||
self.chat_stream: "ChatStream | None" = None
|
||||
@@ -67,6 +68,7 @@ class ActionModifier:
|
||||
|
||||
处理后,ActionManager 将包含最终的可用动作集,供规划器直接使用
|
||||
"""
|
||||
assert global_config is not None
|
||||
# 初始化log_prefix
|
||||
await self._initialize_log_prefix()
|
||||
# 根据 stream_id 加载当前可用的动作
|
||||
|
||||
Reference in New Issue
Block a user