mirror of
https://github.com/hanzoai/agent.git
synced 2026-09-11 21:08:51 +00:00
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.
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)
|