Files
zeekayandGitHub 5b5cf9e9db feat: merge AgentField control plane + SDKs as Hanzo Agents (#1)
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.
2026-02-09 18:53:09 -08:00

45 lines
1020 B
Go

// hanzo-agents/internal/infrastructure/storage/filesystem.go
package storage
import (
"os"
"github.com/hanzoai/agents/control-plane/internal/core/interfaces"
)
type DefaultFileSystemAdapter struct{}
func NewFileSystemAdapter() interfaces.FileSystemAdapter {
return &DefaultFileSystemAdapter{}
}
func (fs *DefaultFileSystemAdapter) ReadFile(path string) ([]byte, error) {
return os.ReadFile(path)
}
func (fs *DefaultFileSystemAdapter) WriteFile(path string, data []byte) error {
return os.WriteFile(path, data, 0644)
}
func (fs *DefaultFileSystemAdapter) Exists(path string) bool {
_, err := os.Stat(path)
return err == nil
}
func (fs *DefaultFileSystemAdapter) CreateDirectory(path string) error {
return os.MkdirAll(path, 0755)
}
func (fs *DefaultFileSystemAdapter) ListDirectory(path string) ([]string, error) {
entries, err := os.ReadDir(path)
if err != nil {
return nil, err
}
var names []string
for _, entry := range entries {
names = append(names, entry.Name())
}
return names, nil
}