This is the code as I worked along with the course.
https://anthropic.skilljar.com/claude-with-the-anthropic-api
Most of the code is written by me. A few of the classes were copied and pasted from the notebooks as there was little point in rewriting that.
I've annotated the types as I've went along in my own work.