Thanks to visit codestin.com
Credit goes to github.com

Skip to content

kunalkushwaha/AgenticGoKit

Repository files navigation

AgenticGoKit

Production-ready Go framework for building intelligent multi-agent AI systems

Go Version License Go Report Card Build Status Documentation

AgenticGoKit enables developers to build sophisticated agent workflows with dynamic tool integration, multi-provider LLM support, and enterprise-grade orchestration patterns. Designed for Go developers who need the performance and reliability of compiled binaries with the flexibility of modern AI agent systems.

⚠️ Alpha Release: AgenticGoKit is currently in alpha development. APIs may change, and some features are still being developed. Suitable for experimentation and early adoption, but not recommended for production use yet.


Quick Start

# Install CLI
go install github.com/kunalkushwaha/agenticgokit/cmd/agentcli@latest

# Create your first agent project
agentcli create my-agent --template basic
cd my-agent

# Set up environment (Azure OpenAI example)
export AZURE_OPENAI_API_KEY=your-key
export AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com/
export AZURE_OPENAI_DEPLOYMENT=your-deployment

# Run it
go run .

Core Example

package main

import (
    "context"
    "github.com/kunalkushwaha/agenticgokit/core"
)

func main() {
    // Create agents
    agents := map[string]core.AgentHandler{
        "researcher": NewResearchAgent(),
        "analyzer":   NewAnalysisAgent(),
    }
    
    // Run collaborative workflow
    runner := core.CreateCollaborativeRunner(agents, 30*time.Second)
    result, err := runner.ProcessEvent(ctx, event)
}

What's Included

  • Multi-Agent Orchestration: Parallel, sequential, and loop patterns
  • Memory & RAG: PostgreSQL pgvector, Weaviate, in-memory providers
  • Tool Integration: MCP protocol for dynamic tool discovery
  • CLI Scaffolding: Generate complete projects instantly
  • Configuration: TOML-based with environment overrides
  • Visualization: Auto-generated Mermaid workflow diagrams

Project Structure

my-agent/
├── main.go              # Entry point
├── agentflow.toml       # Configuration
├── go.mod               # Go module
├── agents/              # Agent implementations
└── docs/                # Generated diagrams

Configuration

# agentflow.toml
[orchestration]
mode = "collaborative"
timeout_seconds = 30

[agent_memory]
provider = "pgvector"
enable_rag = true

[mcp]
enabled = true

Templates

# Available project templates
agentcli create my-project --template basic           # Single agent
agentcli create my-project --template research        # Research team
agentcli create my-project --template rag-system      # Knowledge base
agentcli create my-project --template chat-system     # Conversational

Plugin System

import (
    _ "github.com/kunalkushwaha/agenticgokit/plugins/llm/ollama"
    _ "github.com/kunalkushwaha/agenticgokit/plugins/memory/pgvector"
    _ "github.com/kunalkushwaha/agenticgokit/plugins/orchestrator/default"
)

Examples

Check out examples/ for working demos:

Development

# Clone and build
git clone https://github.com/kunalkushwaha/agenticgokit.git
cd agenticgokit
make build

# Run tests
make test

# Run examples
cd examples/01-simple-agent
go run .

Resources

Contributing

We welcome contributions! See docs/contributors/ContributorGuide.md for getting started.

License

Apache 2.0 - see LICENSE for details.