Skip to content
AI Agents in Go
  • The loop
  • Design
  • Production
  • Run it
  • Providers
  • Findings
  • Glossary
  • The book
  • Work with me

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.

  1. 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
  2. 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
  3. 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.

AI Agents in Go

A code-first guide to building AI agents in Go, by Dayna Blackwell.

© 2026 Dayna Blackwell · RSS feed · What this covers

Not affiliated with or endorsed by Google or the Go project.

The Go gopher was designed by Renée French (CC BY 4.0).

Code excerpts come from the companion code, licensed under Apache 2.0.

Bide, a library for durable agents

Fonts under the SIL Open Font License: Cinzel, Inter, and Space Grotesk.