🤖 自动格式化代码 [skip ci]

This commit is contained in:
github-actions[bot]
2025-05-04 17:29:22 +00:00
parent 1da2b4ca70
commit 78e145bd56
4 changed files with 7 additions and 7 deletions

View File

@@ -62,9 +62,7 @@ class Heartflow:
# 不再需要传入 self.current_state
return await self.subheartflow_manager.get_or_create_subheartflow(subheartflow_id)
async def force_change_subheartflow_status(
self, subheartflow_id: str, status: ChatState
) -> None:
async def force_change_subheartflow_status(self, subheartflow_id: str, status: ChatState) -> None:
"""强制改变子心流的状态"""
# 这里的 message 是可选的,可能是一个消息对象,也可能是其他类型的数据
return await self.subheartflow_manager.force_change_state(subheartflow_id, status)

View File

@@ -82,7 +82,7 @@ class SubHeartflowManager:
max_tokens=1000, # 与 Heartflow 一致 (虽然可能不需要这么多)
request_type="subheartflow_state_eval", # 保留特定的请求类型
)
async def force_change_state(self, subflow_id: Any, target_state: ChatState) -> bool:
"""强制改变指定子心流的状态"""
async with self._lock: