← Learning

LangChain & Agent Building

A linear, one-concept-per-lesson path through LangChain and agent building, from your first API call to a local research agent. 35 lessons · 3 tiers.

Prerequisites: Comfortable writing basic Python (functions, imports, running a script). This teaches AI/LangChain concepts, not coding.

Lessons use Google's Gemini free tier, not OpenAI or Anthropic: both require prepaid API credits, a separate account from their consumer chatbot subscriptions (ChatGPT Plus, Claude Pro don't include API access). Gemini's free tier removes that cost barrier for learning. Lesson 11 covers LangChain's provider-agnostic model interface, the same pattern that lets you swap in a self-hosted open-weight model (for example via Ollama) instead of a cloud API, if you'd rather run everything locally.

Built on LangChain, the open-source framework this course teaches.

Course source

Every lesson's README and lesson.py for this course live in the ai-agent-engineering repo.

View on GitHub →
LangChain & Agent Building

Beginner

Core LangChain mechanics, no tools or agents yet.

  1. 01First CallGitHub
  2. 02Message TypesGitHub
  3. 03Prompt TemplatesGitHub
  4. 04Template Variables and PartialsGitHub
  5. 05Few-Shot PromptingGitHub
  6. 06Chains (LCEL)GitHub
  7. 07Output ParsersGitHub
  8. 08Runnable LambdaGitHub
  9. 09Batching and AsyncGitHub
  10. 10Model ParametersGitHub
  11. 11Provider-Agnostic ModelsGitHub
  12. 12Checkpoint: Prompted Story GeneratorGitHub

Intermediate

Giving the model abilities, real-world rough edges.

  1. 13Defining ToolsGitHub
  2. 14Tool CallingGitHub
  3. 15Multiple ToolsGitHub
  4. 16Tool Error HandlingGitHub
  5. 17Conversation MemoryGitHub
  6. 18Structured OutputGitHub
  7. 19StreamingGitHub
  8. 20Multimodal InputGitHub
  9. 21Retries and Rate LimitsGitHub
  10. 22Checkpoint: CLI AssistantGitHub

Advanced

Real agents, context management, production concerns.

  1. 23create_agent BasicsGitHub
  2. 24Agent Memory (Checkpointer)GitHub
  3. 25Context TrimmingGitHub
  4. 26Conversation SummarizationGitHub
  5. 27Document Loading and SplittingGitHub
  6. 28RAG: Embeddings and VectorstoreGitHub
  7. 29RAG as a ToolGitHub
  8. 30Human in the LoopGitHub
  9. 31Multi-Agent SupervisorGitHub
  10. 32Persistent CheckpointerGitHub
  11. 33Agent Middleware and GuardrailsGitHub
  12. 34Tracing and ObservabilityGitHub
  13. 35Capstone: Local Research Assistant AgentGitHub
Start at Lesson 1

Contact

Book a Call