import os import json import argparse import time from typing import Optional from tqdm import tqdm from google import genai # --- Configuration --- LEVEL_DIRS = ["level1", "level2", "level3"] GENERIC_RESULT_PATTERN = "_result.json" PROMPT_IMAGE_PLACEHOLDER = "" PROMPT_VIDEO_PLACEHOLDER = "