feat: 重构 agentscope 缓存架构,新增消息和附件缓存
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user