Sakti is a comprehensive Go toolkit designed to democratize the development of autonomous agents. Moving beyond simple AI integrations, Sakti provides the foundational building blocks for creating intelligent systems that can think, plan, remember, and act independently.
Whether you're building a single intelligent agent or orchestrating complex multi-agent systems, Sakti offers the performance, flexibility, and modularity needed for production-ready autonomous applications.
The future of AI isn't just about generating text or answering questionsβit's about creating systems that can:
- π§ Reason and Plan: Break down complex problems into actionable steps
- πΎ Remember and Learn: Maintain context and improve over time
- π οΈ Use Tools: Interact with APIs, databases, and external systems
- π€ Collaborate: Work together in teams to solve complex challenges
- π― Act Autonomously: Execute tasks with minimal human intervention
- Unified interface for OpenAI, Anthropic, Grok (xAI), and more
- Seamless provider switching without code changes
- Built-in retry logic and error handling
- Native Go channel-based streaming
- Low-latency response processing
- Concurrent stream handling
- JSON schema-based object generation
- Type-safe structured outputs
- Validation and parsing utilities
- Function calling and tool integration
- Custom tool development framework
- Async tool execution
- Planning and reasoning capabilities
- Memory systems and knowledge management
- Multi-agent coordination
- Microsecond-level agent instantiation
- Minimal memory footprint
- Optimized for concurrent workloads
Sakti supports building autonomous agents across five levels of sophistication:
| Level | Capability | Description | Status |
|---|---|---|---|
| Level 1 | Basic Agents | Tools + Instructions | β Available |
| Level 2 | Knowledge Agents | + Knowledge Base + Storage | π§ Q3 2025 |
| Level 3 | Reasoning Agents | + Memory + Reasoning | π§ Q3 2025 |
| Level 4 | Agent Teams | + Collaboration + Coordination | π§ Q4 2025 |
| Level 5 | Agent Workflows | + State Management + Determinism | π§ Q4 2025 |
go get github.com/zero-one-group/saktipackage main
import (
"context"
"fmt"
"log"
"github.com/zero-one-group/sakti"
)
func main() {
// Create an intelligent agent
agent := sakti.NewWithOpenAI(os.Getenv("OPENAI_API_KEY"), nil)
// Give it a task
response, err := agent.GenerateText("gpt-4",
"Analyze the latest trends in autonomous AI systems")
if err != nil {
log.Fatal(err)
}
fmt.Println("Agent Analysis:", response)
}// Real-time thinking
stream, err := agent.StreamText("gpt-4",
"Plan a strategy for implementing autonomous customer support")
for thought := range stream {
fmt.Print(thought) // Watch the agent think in real-time
}// Agent with capabilities
tools := []sakti.Tool{
sakti.CreateTool("web_search", "Search the internet", searchSchema),
sakti.CreateTool("send_email", "Send emails", emailSchema),
sakti.CreateTool("analyze_data", "Analyze datasets", dataSchema),
}
response, err := agent.ToolCall("gpt-4",
"Research autonomous agents and email me a summary", tools)
// Agent can now search, analyze, and communicate// Agent that returns structured data
type AnalysisResult struct {
Summary string `json:"summary"`
KeyFindings []string `json:"key_findings"`
Confidence float64 `json:"confidence"`
NextActions []string `json:"next_actions"`
}
result, err := agent.GenerateObject("gpt-4",
"Analyze market trends for autonomous AI", AnalysisResult{})We're building the future of autonomous agents together! Check out our Contributing Guide to get started.
- π Report bugs and issues
- π‘ Suggest new features and capabilities
- π§ Submit pull requests
- π Improve documentation
- π― Create example applications
- π§ͺ Write tests and benchmarks
- Getting Started Guide - Your first autonomous agent
- Agent Design Patterns - Best practices and patterns
- Tool Development - Building custom tools
- Performance Guide - Optimizing agent performance
- Examples Repository - Real-world implementations
- π¬ Discord Community - Join the conversation
- π¦ Twitter - Latest updates and announcements
- π§ Newsletter - Monthly insights and updates
- π Blog - Deep dives and tutorials
Licensed under the MIT License. See LICENSE for details.
Built with β€οΈ for the autonomous future
Get Started β’ Documentation β’ Examples β’ Community