refactor(agent): centralize graph resource ownership (#7062)

This commit is contained in:
DDSRem
2026-10-18 21:49:57 +08:00
committed by GitHub
parent 54ba4f435b
commit e1b703aacc
17 changed files with 978 additions and 489 deletions

View File

@@ -584,7 +584,7 @@ def _agent_type() -> type:
保留原始执行图的观察引用,生产失败恢复清缓存后仍可导出失败轨迹。
"""
graph = await super()._create_agent(streaming=streaming)
self.evaluation_bundle = self._compiled_agent_bundle
self.evaluation_bundle = self._graphs.current
return graph
async def _initialize_llm(self, streaming: bool = False) -> Any: