If you love the multi-agent AI orchestration concepts from Pythonโs CrewAI, but want the performance, native concurrency, and low memory footprint of Go, check out crewai-go.
The v0.4.0 release brings key capabilities to make building multi-agent systems in Go fast, type-safe, and production-ready.
โจ Key Highlights:
๐ ๏ธ Custom Tools: Easily create and bind custom tools using tools.NewTool(...).
๐ Sequential Context Flow: Outputs from previous tasks flow directly into subsequent tasks as context.
๐ฆ Structured Outputs: Map LLM responses straight into native Go structs using standard json:"..." tags.
๐ Flexible Provider Support: Run fully offline with Ollama or integrate seamlessly with OpenAI.
๐ง Short-Term Memory: Agents keep context across complex task executions.
๐ก Quick Example:
package main
import (
"context"
"fmt"
"log"
"github.com/rhgs/crewai-go/crew"
)
func main() {
researcher := crew.NewAgent(crew.AgentConfig{
Role: "AI Researcher",
Goal: "Analyze tech trends",
Backstory: "An expert in discovering high-impact open-source Go tools.",
})
task := crew.NewTask(crew.TaskConfig{
Description: "Summarize the main benefits of using Go for AI agent orchestration.",
ExpectedOutput: "3 concise bullet points.",
Agent: researcher,
})
c := crew.NewCrew(crew.CrewConfig{
Agents: []*crew.Agent{researcher},
Tasks: []*crew.Task{task},
})
result, err := c.Kickoff(context.Background())
if err != nil {
log.Fatal(err)
}
fmt.Println(result.Raw)
}
๐ Release details & GitHub repo:
github.com/rhgs/crewai-go/releases/tag/v0.4.0
Top comments (0)