Integrated full stack for the TreeHacks build:
api/- FastAPI + Elasticsearch backendfrontend/- Next.js frontendfetch-agents/- Fetch.ai uAgents track (ASI:One, Agentverse, optional RunPod Flash)
- Backend env:
- Copy
api/.env.exampletoapi/.env - Set
ELASTICSEARCH_URLandELASTICSEARCH_API_KEY
- Copy
- Install deps:
cd frontend && npm install --legacy-peer-depscd ../api && python3 -m venv .venv && .venv/bin/pip install -r requirements.txt
- Start both from repo root:
./scripts/dev.sh
Frontend: http://127.0.0.1:3000
API: http://127.0.0.1:8000
The complete Fetch.ai implementation is in fetch-agents/ (copied from treehacks2026-36), including:
- Orchestrator / Coordinator / Specialist chat flow
- Router / Curator / Expert / Stuck-agent Q&A marketplace
- Payment protocol flow (FET)
- Optional RunPod Flash enrichment via
runpod_assist.py
Setup:
cd fetch-agentspython3 -m venv .venv && source .venv/bin/activatepip install -r requirements.txtcp .env.example .env- Set at least
AGENTVERSE_API_KEYin.env - Run agents as documented in
fetch-agents/README.mdandfetch-agents/DEMO.md
Important local integration default:
fetch-agents/.env.examplenow pointsHACKOVERFLOW_API_URLtohttp://127.0.0.1:8000so Fetch digest/context calls target this local backend.- Fetch agent default ports are
8100-8106to avoid conflicts with the backend on8000.