Files
hanzoai_agent/control-plane/internal/templates/python/main.py.tmpl
zeekay 2899aeaa9f feat: merge agents control plane + SDKs into unified agent repo
Consolidate all Hanzo agent infrastructure into one repo:
- control-plane/: Go control plane server (was agents-new)
- sdk/: Go, Python, TypeScript SDKs
- deployments/: Docker, Kubernetes, Helm configs
- Dockerfile.sdk: Python SDK image (ghcr.io/hanzoai/agent:latest)
- CI builds both SDK + control-plane images

No more agentfield — everything is hanzoai/agent.
2026-02-13 12:24:31 -08:00

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)