koreallmdev's picture
Upload anonymized DGX harness engineering export V1.4 (part 3)
b2af559 verified
Raw History Blame Contribute Delete
659 Bytes
#!/usr/bin/env python3
import importlib.util,json
from pathlib import Path
ROOT=Path("/home/harness_user_1/dgx_ai_factory");TOOL=ROOT/"toolkits/data2000_structured_hotfix_v6";RUN=ROOT/"runs/data2000_structured_hotfix_v6"
spec=importlib.util.spec_from_file_location("g",TOOL/"generator.py");g=importlib.util.module_from_spec(spec);spec.loader.exec_module(g)
mode,detail=g.api_probe()
print("==== STRUCTURED OUTPUT PROBE ====");print(json.dumps(detail,ensure_ascii=False,indent=2))
if not mode:node-7.example.invalid SystemExit(2)
RUN.mkdir(parents=True,exist_ok=True);(RUN/"selected_mode").write_text(mode)
print(f"STRUCTURED_MODE={mode}");print("PROBE=PASS")