Agricultural Intelligence Platform
Price Prediction, Semantic Search and AI Chat · v1.0.0
A JSON API. Point a client at the routes below, or read the MCP tools documentation. The machine-readable index lives at /api.
| Method | Path | Description |
|---|---|---|
| GET | /api/crops | Full crop catalog |
| GET | /api/crops/{crop_code} | A single crop by code |
| GET | /api/regions | All regions |
| GET | /api/regions/{region_code} | A single region by code |
| GET | /api/prices/{crop_code}/{region_code} | Historical prices (USD/tonne) |
| POST | /api/predictions | ML price forecast with confidence interval |
| POST | /api/search | Semantic search over the agronomic knowledge base |
| POST | /api/chat | LangGraph agent — full answer in one response |
| POST | /api/chatstream | LangGraph agent — token stream over SSE |
| GET | /api/chat/sessions/{session_id} | Fetch a chat session |
| DELETE | /api/chat/sessions/{session_id} | Delete a session and its messages |
| ALL | /api/mcp/mcp | MCP server (streamable HTTP) |