promptdojo_

Build a config loader. Write load_config(env) that:

  • Reads ANTHROPIC_API_KEY from env. If missing or empty, raise RuntimeError("ANTHROPIC_API_KEY missing").
  • Reads MODEL with a default of "claude-sonnet-4-6".
  • Reads DEBUG with a default of "false", normalizes it to a real bool by lowercasing and comparing to "true".
  • Returns a dict with keys api_key, model, and debug.

Then call it on the provided env and print one line per key.

Expected output:

api_key=sk-ant-test
model=claude-sonnet-4-6
debug=True

this step needs the editor

on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.

open this same url on a laptop to keep going today.