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.
26 lines
770 B
Cheetah
26 lines
770 B
Cheetah
from hanzo-agents import Agent, AIConfig
|
|
from reasoners import reasoners_router
|
|
|
|
# Basic agent setup - works immediately
|
|
app = Agent(
|
|
node_id="{{.NodeID}}",
|
|
hanzo_agents_server="http://localhost:8080",
|
|
version="1.0.0",
|
|
dev_mode=True,
|
|
|
|
# 🔧 Uncomment to enable AI features:
|
|
# ai_config=AIConfig(
|
|
# model="gpt-4o", # LiteLLM auto-detects provider from model name
|
|
# # Optional: api_key=os.getenv("OPENAI_API_KEY"), # or set OPENAI_API_KEY env var
|
|
# # temperature=0.7,
|
|
# # max_tokens=4096,
|
|
# ),
|
|
)
|
|
|
|
# Include reasoners from separate file
|
|
app.include_router(reasoners_router)
|
|
|
|
if __name__ == "__main__":
|
|
# Auto-discover available port starting from 8000
|
|
app.serve(auto_port=True, dev=True, reload=False)
|