MCP Mastery
About

LangChain & LangGraph Reference

Glossary, diagram atlas, and the APIs you will actually touch when the demo graduates into a system.

Version posture

StackPinned in chaptersWhy it matters
LangChain0.3.xRunnable-first APIs, fewer legacy chain ghosts.
LangGraph0.2.xStateGraph, interrupts, checkpointers, and the good stuff.
Python3.11+Modern async ergonomics without pretending 3.8 is fine forever.

Diagram atlas

Glossary

Runnable

The core LangChain interface for invokable units that support sync, async, batch, stream, config, and composition.

LCEL

LangChain Expression Language: the pipe-friendly composition layer for building runnable graphs without inventing another framework in a meeting.

StateGraph

A LangGraph graph definition whose nodes read and return typed state updates.

Checkpointer

Durable storage for graph state snapshots, resumes, interrupts, and time-travel debugging.

Thread

A logical conversation or run identity used by checkpointers to resume the right graph state.

Reducer

A function that merges node updates into graph state, usually where message history gets less cursed.

Tool

A callable capability exposed to a model or graph node with a name, description, and schema.

bind_tools

The ChatModel method that attaches tool schemas so the model can request calls instead of hallucinating APIs.

Retriever

A component that returns relevant documents for a query from a corpus or search backend.

Re-ranker

A second-stage scorer that reorders retrieved candidates by relevance before the model sees them.

Parent-Document Retriever

A retrieval pattern that searches smaller chunks but returns larger parent documents for usable context.

Interrupt

A LangGraph pause point that asks an external actor to approve, edit, or provide data before continuing.

Time Travel

Checkpoint-based replay or fork of a graph run from an earlier state.

Supervisor

A routing agent that decides which worker or node handles the next step.

Swarm

A multi-agent handoff pattern where control moves between peers instead of one boss router.

LangSmith Run

A traced unit of execution with inputs, outputs, metadata, child runs, and enough evidence to debug the weird thing.

Evaluator

A function or model-backed judge that scores outputs against expected behavior.

LLM-as-Judge

An evaluation pattern where a model grades model output, useful when calibrated and comedy when not.

Prompt Hub

A registry for versioning prompts instead of hiding them in heroic Python strings.

LangServe Route

An HTTP endpoint generated around a runnable for invoke, batch, stream, and playground use.

astream_events

The event stream API for observing runnable progress, tokens, node boundaries, and custom events.

Pydantic Args

Typed tool argument schemas that prevent the model from sending nonsense with confidence.

with_structured_output

A model wrapper that coerces responses into a typed schema instead of asking JSON politely.

MessagesState

A LangGraph state helper for chat histories with message-aware merging.