mirror of
https://github.com/hanzoai/agents.git
synced 2026-10-30 18:48:36 +00:00
Transforms hanzoai/agents from a marketplace config repo into a full agent orchestration platform by merging the AgentField infrastructure: - Go control plane (K8s-like agent orchestration, service mesh, DAG workflows) - Python SDK (FastAPI-based agent framework, LiteLLM, memory, DID/VC) - TypeScript SDK (@hanzo/agents - Vercel AI SDK, MCP, workflows) - Go SDK (idiomatic agent builder + client) - React 19 embedded dashboard (XyFlow DAGs, Recharts, Radix UI) - Docker/K8s/Helm deployment configs - Examples: hello world, deep research, RAG, simulation, benchmarks - Functional test suite across Python/Go/TypeScript All references rebranded: AgentField → Hanzo Agents - Module: github.com/hanzoai/agents/control-plane - Python: hanzo_agents - TypeScript: @hanzo/agents - Go: github.com/hanzoai/agents/sdk/go - Env vars: HANZO_AGENTS_* - Config: hanzo-agents.yaml Previous marketplace configs moved to config/ directory.
1.2 KiB
1.2 KiB
Hanzo Agents Go SDK
The Hanzo Agents Go SDK provides idiomatic Go bindings for interacting with the Hanzo Agents control plane.
Installation
go get github.com/hanzoai/agents/sdk/go
Quick Start
package main
import (
"context"
"log"
hanzo-agentsagent "github.com/hanzoai/agents/sdk/go/agent"
)
func main() {
agent, err := hanzo-agentsagent.New(hanzo-agentsagent.Config{
NodeID: "example-agent",
Hanzo AgentsURL: "http://localhost:8080",
})
if err != nil {
log.Fatal(err)
}
agent.RegisterSkill("health", func(ctx context.Context, _ map[string]any) (any, error) {
return map[string]any{"status": "ok"}, nil
})
if err := agent.Run(context.Background()); err != nil {
log.Fatal(err)
}
}
Modules
agent: Build Hanzo Agents-compatible agents and register reasoners/skills.client: Low-level HTTP client for the Hanzo Agents control plane.types: Shared data structures and contracts.ai: Helpers for interacting with AI providers via the control plane.
Testing
go test ./...
License
Distributed under the Apache 2.0 License. See the repository root for full details.