Extreme Performance
Agent instantiation in ~180ns, 16x faster than Python version. Memory footprint of just 1.2KB per agent with native Go concurrency support.
16x faster than Python | 180ns instantiation | 1.2KB memory per agent
Create an AI agent with tools in just a few lines:
package main
import (
"context"
"fmt"
"github.com/rexleimo/agno-go/pkg/agno/agent"
"github.com/rexleimo/agno-go/pkg/agno/models/openai"
"github.com/rexleimo/agno-go/pkg/agno/tools/calculator"
)
func main() {
// Create model
model, _ := openai.New("gpt-4o-mini", openai.Config{
APIKey: "your-api-key",
})
// Create agent with tools
ag, _ := agent.New(agent.Config{
Name: "Math Assistant",
Model: model,
Toolkits: []toolkit.Toolkit{calculator.New()},
})
// Run agent
output, _ := ag.Run(context.Background(), "What is 25 * 4 + 15?")
fmt.Println(output.Content) // Output: 115
}
Metric | Python Agno | Agno-Go | Improvement |
---|---|---|---|
Agent Creation | ~3μs | ~180ns | 16x faster |
Memory/Agent | ~6.5KB | ~1.2KB | 5.4x less |
Concurrency | GIL limited | Native goroutines | Unlimited |
Agno-Go isn't just a framework—it's a complete production system. The included AgentOS server provides:
Following the Keep It Simple, Stupid philosophy:
# Clone repository
git clone https://github.com/rexleimo/agno-Go.git
cd agno-Go
# Set API key
export OPENAI_API_KEY=sk-your-key-here
# Run example
go run cmd/examples/simple_agent/main.go
# Or start AgentOS server
docker-compose up -d
curl http://localhost:8080/health
Agno-Go is released under the MIT License.
Inspired by Agno (Python) framework.