promptdojo_

Wire the real model — swap fake_llm for the Anthropic SDK shape — step 5 of 9

The agent expects ANTHROPIC_API_KEY from the environment. Fill in the load using os.getenv so a missing key returns None, then the code immediately raises a clear error instead of crashing five frames deep when the SDK rejects the call.

In this demo the env var IS set (mocked via os.environ), so the load succeeds and the script prints loaded.

Expected output:

loaded
read, then continue.