Tutorials.
All 16 posts filed under Tutorials, newest first.
Train a ticket-routing decision model on your examples
Train a model that routes tickets and returns a probability per team: build the JSONL from past routing, train, read the held-out eval, and set a review threshold.
LangSmith Evaluation Pipeline: Datasets, LLM-as-Judge, and Jev in Python
Build a production-grade evaluation pipeline in LangSmith using custom datasets, LLM-as-judge scoring, and the new Jev evaluator — $0.00035/call vs $28.17 for Claude.
Claude Agent SDK: Build Agents on Claude Code's Agent Loop (Python Tutorial)
Run Claude Code's full agent loop — tool execution, hook-driven permissions, in-process MCP servers, and subagents — from Python. Complete working code, no hand-waving.
Add Persistent Memory to Your AI Agent with Mem0: A Complete Python Tutorial
Wire Mem0's memory layer into a working agent in under 60 lines of Python. Covers self-hosted setup, memory.add, memory.search, per-user isolation, and the gotchas that bite in production.
Build a Multi-Tool Agent with Google ADK 2.0: Complete Python Tutorial
Step-by-step tutorial: build a multi-tool agent with Google ADK 2.0 — custom tools, web fetching, ADK web UI, and production patterns.
OpenAI Agents SDK Sessions: Persistent State in Production
OpenAI Agents forget everything between runs by default. Here's how to wire SQLiteSession for dev, Redis for production, and wrap it in a FastAPI endpoint — with working code.
Build a Finance AI Agent with OpenAI Agents SDK: Portfolio Analysis & Risk Assessment
Build a multi-agent portfolio analyst with the OpenAI Agents SDK — market data lookup, risk scoring, portfolio rebalancing tools, and a specialist handoff architecture.
Instrument OpenAI Agents with Langfuse: Full Observability Tutorial
Trace every tool call, guardrail check, and handoff in your OpenAI Agents SDK app with Langfuse. Working code, no fluff.
Build a Healthcare AI Agent with LangGraph: Patient Triage & Scheduling
Step-by-step LangGraph tutorial building a clinical triage agent with patient lookup, symptom assessment, appointment scheduling, and clinician escalation.
OpenAI Agents SDK Tutorial: Tools, Guardrails & Handoffs
Build a multi-agent support system with the OpenAI Agents SDK: custom tools, guardrails, handoffs, and human-in-the-loop approval in one Python file.
AI agent evaluation tutorial: DeepEval and LangSmith
Build an evaluation pipeline for an AI agent with DeepEval and LangSmith: trace the agent, write test cases, load golden datasets and run the checks in CI.
Build a Retail AI Agent with LangGraph: Inventory & Orders
Step-by-step LangGraph tutorial building a retail AI agent with StateGraph, tool-calling nodes for inventory lookup, order processing, and returns.
LangGraph human-in-the-loop with interrupt(): Python guide
Pause a LangGraph agent with interrupt(), let a person approve, reject or edit the tool call, then resume from the checkpoint. Python code for each step.
LangChain @tool Decorator: Build Custom Agent Tools
from langchain.tools import tool — build custom LangChain agent tools with the @tool decorator. Type hints, docstrings, async, error patterns.
Build a RAG Agent with LangChain: Complete Tutorial
Build a Retrieval-Augmented Generation agent with LangChain in Python. Embeddings, vector store, retriever, and answer generation with full code.
LangGraph Tutorial: Build Your First AI Agent in Python
Step-by-step LangGraph tutorial. Build your first Python AI agent with StateGraph nodes, edges, and tool calls. Complete runnable code included.