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

52 lines
1.7 KiB
Python

"""Deep Research Agent with Recursive Planning."""
from __future__ import annotations
import os
from pathlib import Path
import sys
from hanzo_agents import AIConfig, Agent
if __package__ in (None, ""):
current_dir = Path(__file__).resolve().parent
if str(current_dir) not in sys.path:
sys.path.insert(0, str(current_dir))
from routers import planning_router, research_router
app = Agent(
node_id="deep-research",
hanzo_agents_server=f"{os.getenv('HANZO_AGENTS_SERVER', 'http://localhost:8080')}",
ai_config=AIConfig(
model=os.getenv("AI_MODEL", "openrouter/deepseek/deepseek-v3.1-terminus"),
),
)
app.include_router(planning_router)
app.include_router(research_router)
if __name__ == "__main__":
print("🔬 Deep Research Agent")
print("🧠 Node ID: deep-research")
print(f"🌐 Control Plane: {app.hanzo_agents_server}")
print("\n🎯 Architecture: Recursive Planning + Research Execution")
print(" 1. Recursive Task Decomposition → Breaks research into subtasks")
print(" 2. Topological Graph → Identifies dependencies and parallelization")
print(" 3. Research Execution → Tavily search with citation tracking")
print(" 4. Findings Synthesis → Structured results with sources")
print("\n✨ Features:")
print(" - Recursive task breakdown with configurable depth")
print(" - Automatic dependency detection")
print(" - Parallel execution planning")
print(" - Web search integration (Tavily)")
print(" - Citation tracking and structured findings")
print(" - Elegant and simple Hanzo Agents primitives")
port_env = os.getenv("PORT")
if port_env is None:
app.run(auto_port=True, host="::")
else:
app.run(port=int(port_env), host="::")