The list had 22 items, which in the upcoming layout sits above the entry table and would push it 4-5 phone screens down; it now has one item per README subcategory, in README order, reusing the intro's own wording. Co-Authored-By: Claude <noreply@anthropic.com>
5.3 KiB
LangChain is the place to start among Python libraries for AI agents, and LangGraph gives you control of every step. vLLM serves your own models.
How to choose:
- Skills for your coding agent: Django AI Skills, Sentry Skills, or Trail of Bits Skills
- A first agent: LangChain, or LangGraph to control every step
- An agent built on one vendor's platform: OpenAI Agents SDK or Claude Agent SDK
- A ready-made personal assistant: Hermes Agent, or AstrBot for chat apps
- Prompts tuned against a metric instead of by hand: DSPy
- Structured output, RAG, or agent memory: Instructor, LlamaIndex, or Mem0
- Running pre-trained models: Transformers
- Serving a model: vLLM, or MLX LM on Apple silicon
- One API for many LLM providers: LiteLLM
- Image and video generation: Diffusers
- Fine-tuning: PEFT, Unsloth, or Axolotl
- Speech: Whisper for speech to text, Kitten TTS for text to speech
New to agents? LangGraph's own docs recommend LangChain's prebuilt agents, which run on LangGraph: give an agent a model, tools, and a prompt, and the loop is handled for you. Drop down to LangGraph for needs that combine deterministic and agentic workflows. You don't need LangChain to use LangGraph.
Pydantic AI is the pick when you want your type checker to cover the agent too. Give the agent an output type, and every run comes back as a validated Pydantic model; when validation fails, the model is asked to try again. Tools and instructions get their dependencies through typed injection, so you can swap in a test double in unit tests.
CrewAI splits the work into Crews, teams of role-playing agents, and Flows, event-driven workflows that hold state. For production apps, its docs recommend starting with a Flow and calling Crews from it.
OpenAI Agents SDK keeps the primitives few: agents, handoffs, and guardrails, with tracing built in. It also runs non-OpenAI models. Claude Agent SDK runs Claude Code as a library: the same built-in tools, permissions, sessions, and hooks, inside your own process.
Instructor gets validated data out of an LLM into a Pydantic model, with retries when validation fails. Its own docs draw the line: Instructor for extraction, Pydantic AI for agents.
DSPy has you write signatures, not prompts. Give it examples and a metric, and its optimizers tune the prompts for you.
LlamaIndex is a data framework for LLM apps: it loads, indexes, and queries your documents. Install llama-index to start, or llama-index-core plus only the integrations you need.
Mem0 adds memory that persists across sessions. Self-host the open-source version, or use the managed platform. OpenViking is AGPL-licensed, where Mem0 is Apache 2.0.
Transformers runs pre-trained models from the Hugging Face Hub. Start with pipeline(): pick a task and a model, and it handles preprocessing and output. Diffusers works the same way for diffusion models.
vLLM serves a model behind an OpenAI-compatible API. SGLang does too, and its RadixAttention caches shared prefixes, which helps when requests share a long prompt. On Apple silicon, MLX LM runs and fine-tunes models locally.
LiteLLM puts many LLM providers behind one OpenAI-style API. Use the Python SDK in your code, or run the proxy as a gateway when a platform team needs keys, budgets, and spend tracking across projects.
PEFT trains a small set of extra parameters instead of the whole model, and works with Transformers and Diffusers. Unsloth's docs recommend starting with QLoRA. Axolotl drives the whole pipeline from one YAML file: preprocessing, training, evaluation, quantization, and inference.
Whisper is a general-purpose speech recognition model that also translates speech and identifies languages. Microsoft marks VibeVoice for research and development only.
For text to speech, Kitten TTS runs on CPU without a GPU. gTTS calls Google Translate's undocumented speech endpoint, so it needs the internet and can break without notice.
The skill repos aren't pip packages: they install into your coding agent, not your app. Django AI Skills and Sentry Skills follow the Agent Skills open format.
Write your app against the OpenAI API format, and you can switch between a hosted model and your own: vLLM, SGLang, and the LiteLLM proxy all speak it.