02Chapter 2: Writing adapters for two providersAssume you know Python, HTTP APIs, JSON, and the basic idea of an interface or protocol. This chapter uses a small provider interface so application code does not depend on either provider's request or response format.1 min read
03Chapter 3: Normalizing errorsAssume you already have provider-neutral ChatRequest and ChatResponse types, a ChatProvider interface, and adapters that call individual APIs. This chapter focuses on differences that remain at the adapter boundary.1 min read