How sachinacharya08/geoagrilink works
This is a GeoAgriLink agricultural platform API: farmers manage farms and production, inspect satellite-derived conditions and AI analyses, trade produce, and use a conversational assistant. The main interaction path is a user request into the API domain handlers; the chatbot can retrieve authorized farm, crop, insight, and marketplace data, or prepare writes that require confirmation. The README describes a generic template API and does not document these domain features, so the graph relies on sampled source and the source index. Unsampled route wiring is omitted.
Main entry points: registry.py Tool Registry · gemini.py Gemini Chat · writes.py Prepared Actions · models.py Products and Orders
Components 25
Identity
- User API
apps/users/views.py - User Service
apps/users/services.py - User Records
apps/users/models.py
Farm and Crop Data
- Farm API
apps/farms/views.py - Farm Service
apps/farms/services.py - Farm and History
apps/farms/models.py - Satellite Analysis
apps/farms/gee_services.py - Crop API
apps/crops/views.py - Crop and Production
apps/crops/models.py
Insights and Assistant
- Insight API
apps/ai_insights/views.py - AI Insights
apps/ai_insights/models.py - Vegetation AI
- Chat API
apps/chatbot/views.py - Gemini Chat
apps/chatbot/services/gemini.py - Assistant Prompts
apps/chatbot/services/prompts.py - Tool Registry
apps/chatbot/tools/registry.py - Prepared Actions
apps/chatbot/tools/writes.py - Chat and Pending Actions
apps/chatbot/models.py
Marketplace
- Marketplace API
apps/marketplaces/views.py - Order Service
apps/marketplaces/services.py - Products and Orders
apps/marketplaces/models.py
Other components
- Farmer
- Google Earth Engine
- Google Gemini
- Application Database
Connections 32
- Farmer → User API: requests account actions
README.md - User API → User Service: delegates account logic
- User Service → User Records: creates and updates
apps/users/services.py - Farmer → Farm API: manages farms
- Farm Service → Farm and History: reads and stores history
apps/farms/services.py - Farm Service → Satellite Analysis: fetches measurements
apps/farms/services.py - Satellite Analysis → Google Earth Engine: queries satellite data
- Farm Service → Vegetation AI: posts index payload
apps/farms/services.py - Farmer → Crop API: manages production
- Farmer → Insight API: requests insights
- Farmer → Chat API: asks farming questions
- Chat API → Gemini Chat: dispatches chat
apps/chatbot/views.py - Gemini Chat → Assistant Prompts: uses instructions
apps/chatbot/services/gemini.py - Gemini Chat → Tool Registry: invokes tools
apps/chatbot/services/gemini.py - Gemini Chat → Google Gemini: sends model requests
- Chat API → Prepared Actions: handles confirmations
apps/chatbot/views.py - Prepared Actions → Chat and Pending Actions: creates pending actions
apps/chatbot/tools/writes.py - Tool Registry → Crop and Production: queries production data
apps/chatbot/tools/registry.py - Tool Registry → Farm and History: queries farm data
apps/chatbot/tools/registry.py - Tool Registry → AI Insights: queries insight data
apps/chatbot/tools/registry.py - Tool Registry → Products and Orders: queries listings and orders
apps/chatbot/tools/registry.py - Prepared Actions → Crop and Production: prepares production records
apps/chatbot/tools/writes.py - Prepared Actions → Products and Orders: prepares listings and orders
apps/chatbot/tools/writes.py - Farmer → Marketplace API: trades produce
- Marketplace API → Order Service: creates orders
apps/marketplaces/views.py - Order Service → Products and Orders: writes order and stock
apps/marketplaces/services.py - User Records → Application Database: persists records
- Farm and History → Application Database: persists records
- Crop and Production → Application Database: persists records
- AI Insights → Application Database: persists records
- Chat and Pending Actions → Application Database: persists records
- Products and Orders → Application Database: persists records