agentic-ai-course

Agentic AI Course

A hands-on, code-first course on building agents with the Claude API — going from a single stateless API call to a tool-using, memory-equipped, specialized agent with production safety guardrails, multi-agent orchestration, streaming, retrieval, automated evaluation, cost optimization, standardized tool protocols, long-running context management, deep reasoning, and deployment as a real service.

Each module is a self-contained folder with its own README.md, code, and requirements.txt — pushable to GitHub individually or together as one repo.

There’s also a companion learning website in website/ that walks through the concepts and code from every module in the browser — live at khaledturk.github.io/agentic-ai-course.

Modules

  1. Getting Started — creating an Anthropic account, generating an API key, and setting it as an environment variable safely
  2. Your First Agent — a plain API call, and why Claude has no memory between calls
  3. Tools & Function Calling — the agent loop: tool_use → run tool → tool_result → repeat
  4. Persistent Memory — remembering facts across separate runs via a JSON file and dedicated tools
  5. Skills & Specialization — loading an entire persona from a Markdown file
  6. Production Guardrails — approval flows, loop detection, write budgets, and retries for an agent that can take real destructive actions
  7. Multi-Agent Orchestration — an orchestrator that delegates sub-tasks to specialist agents and combines their results
  8. Streaming Responses — printing Claude’s reply token-by-token instead of waiting for the full response
  9. Retrieval-Augmented Generation — grounding answers in a searchable knowledge base, with citations
  10. Evaluation & Testing Agents — deterministic checks and LLM-as-judge checks for catching regressions before they ship
  11. Prompt Caching & Cost Optimization — reusing Claude’s processing of large, repeated context instead of paying for it every call
  12. MCP (Model Context Protocol) — connecting an agent to external tool servers instead of hand-rolling every tool
  13. Context Management for Long-Running Agents — summarizing older turns to keep a growing conversation bounded
  14. Extended Thinking — giving Claude explicit room to reason through hard problems before answering
  15. Deploying an Agent as a Service — wrapping an agent in a FastAPI server with session state, instead of a CLI loop

Modules 6–14 each ship an exercise.py (starter with TODOs) alongside solution.py (completed reference) — attempt the exercise first, then compare.

Prerequisites

Each module’s README.md has exact run instructions.

How the modules connect

Every module keeps the agent loop from Module 2 intact and adds exactly one new concept on top of it — memory, then specialization, then safety, then orchestration, streaming, retrieval, evaluation, cost optimization, standardized tooling, context management, deep reasoning, and deployment — so you can see each idea in isolation before combining them into something closer to a real deployed agent.

License

MIT — free to use, share, and adapt.