feat: 重构 agentscope 缓存架构,新增消息和附件缓存

This commit is contained in:
qzl
2026-03-25 17:41:55 +08:00
parent d22ded21f8
commit 599c597e69
25 changed files with 1509 additions and 78 deletions
@@ -28,6 +28,7 @@ async def test_tool_result_event_uses_runtime_tool_call_id() -> None:
session_id="thread-1",
run_id="run-1",
stage="worker",
runtime_mode="chat",
emit_text_events=False,
emit_tool_events=True,
)
@@ -65,3 +66,4 @@ async def test_tool_result_event_uses_runtime_tool_call_id() -> None:
result_events = [e for e in pipeline.events if e.get("type") == "TOOL_CALL_RESULT"]
assert len(result_events) == 1
assert result_events[0]["tool_call_id"] == "runtime-call-123"
assert result_events[0]["runtime_mode"] == "chat"