Build

API tutorials and working code for Claude and other models.

  1. Claude Tool Use Explained With Three Real Python Examples Build one reusable tool-use loop, then use it for an order lookup, a read-only SQL assistant and a calendar tool that asks a human before it acts. 12 min read
  2. How to Get Reliable JSON From an LLM (With Python Code) Stop parsing broken JSON. Force a schema with tool use, validate with Pydantic, feed errors back for a retry, and measure how often your prompt really works. 11 min read
  3. How to Use the Claude API in Python: A Beginner's Guide Install the SDK, make your first request, stream replies, hold a conversation, call your own functions and handle errors, with Python code you can run. 10 min read