Tools of the Trade: LLM API Stack

Consolidated reference: platforms, libraries, datasets, models, and external resources for this part.

Chapter opener illustration: Tools of the Trade: LLM API Stack.

"The right SDK shaves a week off your prototype; the wrong one adds two months of integration work."

PipPip, Workflow-Optimizing AI Agent
Looking Back

Chapters 11 through 13 covered the API, the prompt, and the hybrid decision. This chapter is the SDK toolbox: LangChain, LiteLLM, Instructor, Outlines, structured outputs, observability, and the small libraries that let you build LLM apps quickly without locking yourself to one vendor.

Big Picture

Part III walked you through provider APIs, prompt engineering, and hybrid ML+LLM design. This chapter consolidates the working toolchain that every workflow in the part assumes: the provider SDKs (OpenAI, Anthropic, Google, litellm), the prompt-engineering platforms (LangSmith, PromptLayer, Helicone), and the local-inference toolchain (Ollama, llama.cpp, MLX) you reach for when the cloud bill or the privacy budget runs out. Bookmark this chapter and come back to it whenever you stand up a new API client.

Chapter Overview

Part III walked through provider APIs, prompt engineering, and hybrid ML+LLM design. This chapter consolidates the toolchain that every workflow in the part assumes: the provider SDKs (OpenAI, Anthropic, Google, litellm), the prompt-engineering platforms (LangSmith, PromptLayer, Helicone), and the local-inference toolchain (Ollama, llama.cpp, MLX) you reach for when the cloud bill or the privacy budget runs out.

Bookmark this chapter and return whenever you stand up a new API client. The Tools chapters compound: every later Part assumes the API-stack vocabulary that this chapter locks in.

Note: Learning Objectives

Sections in This Chapter

Prerequisites

What Comes Next

Part IV shifts from "call a frontier model through its API" to "adapt a model to your task": continued pretraining, supervised fine-tuning, LoRA / QLoRA, preference optimization (DPO, GRPO), and the reasoning-recipe lineage that the DeepSeek-R1 release made canonical in 2025. Chapter 21 closes Part IV with its own Tools of the Trade chapter, focused on training frameworks (axolotl, TRL, torchtune, Unsloth), preference datasets, and the open-recipe ecosystem the post-R1 community settled on. The Tools chapters compound: every later one assumes the API-stack vocabulary that this chapter just locked in. Continue to Chapter 15: Synthetic Data Generation & LLM Simulation.