[高] Agent on_llm_invocation回调遗漏await导致协程未执行 #87
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
结论: 非Bug
经代码审查确认,
on_llm_invocation回调实际为同步函数(见workflow_engine.py:1937定义def _on_agent_llm()),调用方式self.on_llm_invocation()无需await。类型注解
Callable[[], Any]与同步调用一致。