feat: 实现 AgentScope ReAct Runner 两阶段执行并重构事件处理

This commit is contained in:
zl-q
2026-03-16 09:01:01 +08:00
parent 072c09d99d
commit dcceb48d84
51 changed files with 5015 additions and 5663 deletions
@@ -17,12 +17,13 @@ async def test_pipeline_orders_codec_persist_publish() -> None:
class _Store:
async def persist(self, event: dict[str, object]) -> None:
calls.append("persist")
assert event["type"] == "RUN_STARTED"
assert event["id"] == "evt-1"
class _Bus:
async def publish(self, *, session_id: str, event: dict[str, object]) -> str:
calls.append("publish")
assert session_id == "thread-1"
assert event["type"] == "RUN_STARTED"
return "1-0"
pipeline = AgentScopeEventPipeline(codec=_Codec(), store=_Store(), bus=_Bus())