video_state defined; dedupe; device-visual check repaired
Browse files- tests/e2e_roleplay.py +2 -2
tests/e2e_roleplay.py
CHANGED
|
@@ -199,6 +199,7 @@ DISCLOSURE_KEYWORDS = ("ai", "automated")
|
|
| 199 |
async def conversation():
|
| 200 |
room = rtc.Room()
|
| 201 |
turns = []
|
|
|
|
| 202 |
audio_state = {"first": None, "last": None, "chunks": []}
|
| 203 |
video_state = {"bottom": [], "last_img": None} # device-luminance channel
|
| 204 |
|
|
@@ -315,8 +316,7 @@ bot_log = EventLog(sdir / "bot-events.jsonl").events()
|
|
| 315 |
actions = [e for e in bot_log if e["type"] == "agent.action"]
|
| 316 |
check("character *actions* logged as events", len(actions) >= 1,
|
| 317 |
"; ".join(a["payload"]["text"] for a in actions)[:160])
|
| 318 |
-
tools = [e for e in bot_log if e["type"] == "agent.tool"]
|
| 319 |
-
tools = [e for e in bot_log if e["type"] == "agent.tool"]
|
| 320 |
ok_tools = [e for e in tools if e["payload"].get("ok")]
|
| 321 |
check("character used the terminal (audited agent.tool call)", len(ok_tools) >= 1,
|
| 322 |
" | ".join(f"{e['payload']['tool']}:{str(e['payload'].get('args'))[:60]}"
|
|
|
|
| 199 |
async def conversation():
|
| 200 |
room = rtc.Room()
|
| 201 |
turns = []
|
| 202 |
+
video_state = {"bottom": []} # laptop-region luminance samples
|
| 203 |
audio_state = {"first": None, "last": None, "chunks": []}
|
| 204 |
video_state = {"bottom": [], "last_img": None} # device-luminance channel
|
| 205 |
|
|
|
|
| 316 |
actions = [e for e in bot_log if e["type"] == "agent.action"]
|
| 317 |
check("character *actions* logged as events", len(actions) >= 1,
|
| 318 |
"; ".join(a["payload"]["text"] for a in actions)[:160])
|
| 319 |
+
tools = [e for e in bot_log if e["type"] == "agent.tool"]
|
|
|
|
| 320 |
ok_tools = [e for e in tools if e["payload"].get("ok")]
|
| 321 |
check("character used the terminal (audited agent.tool call)", len(ok_tools) >= 1,
|
| 322 |
" | ".join(f"{e['payload']['tool']}:{str(e['payload'].get('args'))[:60]}"
|