refactor: convert _stream_agent_tokens to a static method

This commit is contained in:
jxxghp
2026-06-21 13:43:36 +08:00
parent 6c45ade813
commit ce51a20bdb

View File

@@ -1177,8 +1177,9 @@ class MoviePilotAgent:
)
return attachments
@staticmethod
async def _stream_agent_tokens(
self, agent, messages: dict, config: dict, on_token: Callable[[str], None]
agent, messages: dict, config: dict, on_token: Callable[[str], None]
):
"""
流式运行智能体过滤工具调用token和思考内容将模型生成的内容通过回调输出。