Hugging Face
Agents Course · smolagents · Transformers
This page shows every pattern that Hugging Face has published or written about — 3 in total. Each one includes a simple picture of how it works, a short explanation, an example of when to use it, and its trade-offs (the good parts and the not-so-good parts).
Reading patterns from one source at a time matters because it lets you see how a single company or team thinks about building AI agents, and compare their ideas side by side. If a pattern here also appears in the bigger Deep Catalogue, you will see a link so you can read the full, detailed version.

3B.01Code Agent
Agent writes Python code to be executed, rather than JSON tool calls — more expressive but requires sandboxing.
3B.02Tool-Calling Agent (JSON)
Standard function-call pattern — JSON arguments for declared tools.
See 1C.02, 2D.01
3B.03Smolagent
Minimal-scaffolding agent — a few hundred lines of Python, ReAct-like loop, extensible.