Section
Providers and frameworks
Model APIs, official SDKs, libraries, and Go agent frameworks, each placed against the part of a harness you can write yourself.
- How two provider APIs differ The same agent request, sent as OpenAI-style chat completions through OpenRouter and as Anthropic’s Messages API, differs in twelve places, from where the system prompt goes to how a stream ends. A table of each difference, with the chapter and the code that handles it.chapters 2, 4, 6, 8, and 11
- More providers A reference for writing a third adapter. How the native APIs of Google’s Gemini, Ollama, Amazon Bedrock, and Cohere carry the system prompt, tool calls, tool results, stop reasons, and usage, whether each offers an OpenAI-compatible endpoint, and its official Go library, from each provider’s documentation as of October 18, 2026.chapters 2 and 11
- Libraries and SDKs The provider SDKs, the MCP SDK, OpenTelemetry, and the five Go agent frameworks that the book’s code imports or measures, each with its pinned version, what it does well, what it costs, and the part of a harness it stands in for.chapters 4, 10, 11, 12, and 16
These pages compare what exists with what you can write, say where each fact came from and when it was checked, and credit what each option does well.