At the foot of the monument's great stairs, the kneeling Ghost, a stone android, holds a lantern low while the Gopher, a clipboard under one arm, steps onto the first stair and looks up the long climb toward the lit rings.

Section

Basics

How AI agents work, from the ground up: what an agent is, the loop at its center, calling a model from Go, tool calling, what each turn costs, and how a model picks its next token.

Start here if you are new to agents or to LLM (large language model) APIs. The pages build on each other in the order listed, and each one points at runnable Go code. The Go an agent leans on, such as context.Context, error handling, and streams, has its own section, Go in depth, which the guides here link to where they use it.

Browse every guide by stage