Agent core
A focused API for the full request cycle.
Generate, stream, attach files, call tools, and coordinate specialists from Go.
a, err := agent.New(agent.Options{
Model: model,
Memory: memory,
})
Agent infrastructure for Go
Models, memory, tools, guardrails, and workflows in one composable Go framework.
One runtime, five systems
Start with a small agent core. Add infrastructure as your application grows.
Agent core
Generate, stream, attach files, call tools, and coordinate specialists from Go.
a, err := agent.New(agent.Options{
Model: model,
Memory: memory,
})
Providers
Use hosted APIs, route across providers, or keep development local.
Memory
Combine short-term sessions with pluggable stores for durable, searchable history.
Tools and safety
Use structured tools, UTCP, CodeMode, checkpoints, and input or output guardrails.
tool call -> policy -> result
Model middleware
Compose runtime controls once, then apply them to any provider.
Graph workflows
Route work between functions, tools, and agents without hiding control flow.
The dummy model and in-memory store keep local setup safe and key-free.
go get github.com/Protocol-Lattice/go-agent
Install the package, choose a model, and create an agent.