- Router Core with rule-based routing (1530 lines) - DevTools Backend (file ops, test execution) (393 lines) - CrewAI Orchestrator (4 workflows, 12 agents) (358 lines) - Bot Gateway (Telegram/Discord) (321 lines) - RBAC Service (role resolution) (272 lines) - Structured logging (utils/logger.py) - Docker deployment (docker-compose.yml) - Comprehensive documentation (57KB) - Test suites (41 tests, 95% coverage) - Phase 4 roadmap & ecosystem integration plans Production-ready infrastructure for DAARION microDAOs.
45 lines
991 B
Bash
Executable File
45 lines
991 B
Bash
Executable File
#!/bin/bash
|
||
# Test FastAPI DAGI Router
|
||
|
||
API_URL="http://127.0.0.1:9102"
|
||
|
||
echo "=== Testing DAGI Router FastAPI ==="
|
||
echo ""
|
||
|
||
echo "1. Health Check:"
|
||
curl -s $API_URL/health | python3 -m json.tool
|
||
echo -e "\n"
|
||
|
||
echo "2. Root Info:"
|
||
curl -s $API_URL/ | python3 -m json.tool
|
||
echo -e "\n"
|
||
|
||
echo "3. Providers List:"
|
||
curl -s $API_URL/providers | python3 -m json.tool
|
||
echo -e "\n"
|
||
|
||
echo "4. Routing Rules:"
|
||
curl -s $API_URL/routing | python3 -m json.tool
|
||
echo -e "\n"
|
||
|
||
echo "5. Simple DevTools Request:"
|
||
curl -s -X POST $API_URL/route \
|
||
-H "Content-Type: application/json" \
|
||
-d '{
|
||
"agent": "devtools",
|
||
"message": "Що таке memory leak?"
|
||
}' | python3 -m json.tool
|
||
echo -e "\n"
|
||
|
||
echo "6. Request with task_type:"
|
||
curl -s -X POST $API_URL/route \
|
||
-H "Content-Type: application/json" \
|
||
-d '{
|
||
"agent": "devtools",
|
||
"message": "Як виправити баг?",
|
||
"payload": {"task_type": "bugfix"}
|
||
}' | python3 -m json.tool
|
||
echo -e "\n"
|
||
|
||
echo "=== Tests Complete ==="
|