How boug-mariem/agriment works
AgriAdvisor is a French agricultural decision-support platform whose web interface connects farmers to separate agriculture, regulation, business, monitoring, and waste-valorization agents. The documented journey spans account access, land and crop analysis, legal and market advice, ongoing alerts, and community listings. The tree also contains a distinct AgriMent mobile pest-detection app. Some agent-to-agent and frontend-to-service wiring is documented only at a high level; those links are marked unverified rather than presented as inspected calls.
Main entry points: routes Web application · detect.py Pest detection · regulation_agent.py Regulation assistant · connection.py Mobile app database
Components 25
Farmer platform
- Web application
frontend/src/routes - Accounts
backend/auth/app/routers/auth.py - Marketplace
frontend/src/features/marketplace
Agriculture agent
- Agriculture API
backend/agent_agriculture/app/routers/agriculture.py - Land and crop analysis
backend/agent_agriculture/app/services - Agriculture knowledge RAG
backend/agent_agriculture/app/services/rag_service.py
Regulation agent
- Regulation API
backend/agent_regulation/app/api/routes.py - Regulation assistant
backend/agent_regulation/app/agent/regulation_agent.py - Hybrid legal retrieval
backend/agent_regulation/app/services/retriever_service.py - Legal tools
backend/agent_regulation/app/tools
Business and monitoring
- Business API
backend/agent_business/app/routers/business.py - Scenario and market analysis
backend/agent_business/app/services - Market intelligence RAG
backend/agent_business/app/market_intelligence/rag - Monitoring API
backend/agent_monitoring/app/routers/monitoring.py - Daily monitoring
backend/agent_monitoring/app/agent/graph.py
Waste valorization
- Waste intelligence API
backend/waste_agents/api/service.py - Waste research agents
backend/waste_agents/agents - Knowledge storage
backend/waste_agents/services/storage_service.py
AgriMent mobile
- AgriMent app
Mobile-AgriMent/frontend/src/navigation/AppNavigator.tsx - Mobile authentication
Mobile-AgriMent/backend/routes/auth.py - Pest detection
Mobile-AgriMent/backend/routes/detect.py - Vision analysis
Mobile-AgriMent/backend/services/vision_service.py - Regional notifications
Mobile-AgriMent/backend/routes/notifications.py - Mobile app database
Mobile-AgriMent/backend/database/connection.py
Other components
- Farmer
Connections 25
- Farmer → Web application: uses
README.md - Web application → Accounts: authenticates
- Web application → Agriculture API: requests analysis
- Web application → Regulation API: asks regulations
- Web application → Business API: requests study
- Web application → Monitoring API: views alerts
- Web application → Waste intelligence API: explores valorization
- Web application → Marketplace: browses listings
README.md - Agriculture API → Land and crop analysis: routes analysis
- Land and crop analysis → Agriculture knowledge RAG: grounds advice
- Regulation API → Regulation assistant: calls
backend/agent_regulation/app/api/routes.py - Regulation assistant → Legal tools: uses tools
backend/agent_regulation/app/agent/regulation_agent.py - Regulation assistant → Hybrid legal retrieval: retrieves sources
- Business API → Scenario and market analysis: routes decisions
- Scenario and market analysis → Market intelligence RAG: uses market evidence
- Monitoring API → Daily monitoring: routes monitoring
- Waste intelligence API → Knowledge storage: persists knowledge
backend/waste_agents/api/service.py - Waste research agents → Knowledge storage: loads and saves
- AgriMent app → Mobile authentication: signs in
- AgriMent app → Pest detection: submits detection
- Pest detection → Vision analysis: analyzes image
Mobile-AgriMent/backend/routes/detect.py - Pest detection → Regional notifications: creates alerts
Mobile-AgriMent/backend/routes/detect.py - Pest detection → Mobile app database: reads and writes
Mobile-AgriMent/backend/routes/detect.py - Mobile authentication → Mobile app database: accesses records
Mobile-AgriMent/backend/routes/auth.py - Regional notifications → Mobile app database: loads notifications
Mobile-AgriMent/backend/routes/notifications.py