Agent-Based and Tool-Driven Design
Rather than relying on a single monolithic model, the AI module uses an agent-based architecture. Different agents are responsible for:
Moderating and validating user queries
Understanding intent and orchestrating tool calls
Generating follow-up suggestions where applicable
All meaningful actions, such as fetching weather data, searching advisory content, or checking scheme status, are performed via explicit tools and APIs. The language model’s role is limited to reasoning, routing, and response composition.
This design improves safety and predictability, enables easier auditing and monitoring and allows independent evolution of tools and models
The AI module uses capability-based tools rather than use case–specific logic. Each user query is first classified by intent, and the AgriNet Agent then invokes the appropriate tool with structured parameters. The same tools are reused across deployments like Maha VISTAAR and Bharat VISTAAR, with differences only in which tools are enabled.
Maha VISTAAR
Advisory
search_terms → search_documents → get_advisory
Identifies standard agricultural terminology, retrieves relevant advisory documents, and generates grounded pest, disease, and farming practice recommendations
crop, pest/disease symptoms, crop stage, district
Mandi Prices
fetch_agristack_data OR mandi_prices
Retrieves real-time commodity prices across mandis using farmer location or user-provided district and commodity
commodity, district / market, date
Scheme Information
get_scheme_codes → get_scheme_info OR get_multiple_schemes_info
Retrieves verified scheme benefits, eligibility criteria, and application process details; supports multiple scheme retrieval based on farmer need
scheme category, farmer category, eligibility context
Weather Forecast
fetch_agristack_data OR forward_geocode → get_weather
Retrieves real-time weather forecast using farmer coordinates or location from query
location OR latitude/longitude, forecast date
Warehouses (Agri Services)
fetch_agristack_data OR forward_geocode → agri_services
Identifies warehouse and storage infrastructure availability based on location and commodity
district OR coordinates, commodity, service type
AgriAssistant Contact
fetch_agristack_data OR forward_geocode → contact_agricultural_staff
Retrieves verified contact details of local agricultural extension officers and support staff
district OR coordinates, service type
Maha DBT Status
get_scheme_status
Retrieves application and benefit disbursement status for MahaDBT schemes (requires authentication context)
farmer ID / beneficiary ID (auto if authenticated)
Weather Historical
fetch_agristack_data OR forward_geocode → get_historical_weather
Retrieves historical weather and rainfall trends for planning and analysis
location OR coordinates, date range
Bharat VISTAAR
Scheme Information
search_terms → search_documents → scheme_info
Identifies scheme-related terminology, retrieves verified scheme documents, and provides scheme benefits, eligibility, and application guidance
scheme name, scheme category, farmer category, state
PM-Kisan Grievance Check
pmkisan_grievance_status
Retrieves grievance status from PM-Kisan grievance systems and returns current resolution stage
grievance ID, registered mobile number
PMFBY Status Check
pmfby_scheme_status (OTP validation → status retrieval)
Retrieves crop insurance application and claim status from PMFBY systems with OTP-based authentication validation
policy ID, farmer ID, OTP (if required)
SHC Status Check
shc_scheme_status
Retrieves Soil Health Card test processing and report generation status from SHC systems
SHC ID, registered mobile number
PM-Kisan Instalment Status
pmkisan_scheme_status
Retrieves PM-Kisan instalment disbursement and payment status from official programme systems
beneficiary ID, registered mobile number
Advisory
search_terms → search_documents → get_advisory
Identifies standard crop and issue terminology, retrieves advisory documents, and provides grounded agricultural recommendations
crop, pest/disease issue, crop stage, district
Last updated