feat: add script to read and parse transcript jsonl steps
This commit is contained in:
11
scripts/read_step.py
Normal file
11
scripts/read_step.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import json
|
||||
|
||||
with open(r"C:\Users\Snarf\.gemini\antigravity\brain\67541ce0-c72c-4983-b7f8-7f29d818f6c0\.system_generated\logs\transcript.jsonl", "r", encoding="utf-8") as f:
|
||||
for line in f:
|
||||
data = json.loads(line)
|
||||
idx = data.get("step_index", 0)
|
||||
if 1970 <= idx <= 2010 and data.get("source") == "MODEL" and data.get("type") == "PLANNER_RESPONSE":
|
||||
content = data.get("content")
|
||||
if content:
|
||||
print(f"=== Step {idx} ===")
|
||||
print(content[:800])
|
||||
Reference in New Issue
Block a user