فهرست منبع

fix(ci): align minimal prompt-history expectations with shell-only turns

fz 2 هفته پیش
والد
کامیت
b42b5b5e94

+ 1 - 1
scripts/smoke-python-runtime.py

@@ -1837,7 +1837,7 @@ def build_in_history_snapshot_files(
     assert all(event.get("surfaceOp") in (None, "append") for event in result.events)
     first_tool = next(index for index, event in enumerate(result.events) if event.get("type") == "tool/result")
     assert result.events.index(systems[1]) > first_tool
-    assert len(requests) == 4, requests
+    assert len(requests) == 3, requests
     request_prompts = []
     for index, request in enumerate(requests):
         messages = request["messages"]

+ 0 - 4
scripts/snapshots/python-sdk-single-exe/minimal-in-history/prompt-history.json

@@ -7,10 +7,6 @@
       "You are a helpful software engineer assistant.\n\nPython SDK prompt version 1.",
       "You are a helpful software engineer assistant.\n\nPython SDK prompt version 2."
     ],
-    [
-      "You are a helpful software engineer assistant.\n\nPython SDK prompt version 1.",
-      "You are a helpful software engineer assistant.\n\nPython SDK prompt version 2."
-    ],
     [
       "You are a helpful software engineer assistant.\n\nPython SDK prompt version 1.",
       "You are a helpful software engineer assistant.\n\nPython SDK prompt version 2."