# FarmDirect Core AI Library

This is the core intelligence engine for the **FarmDirect** platform. It powers the Android/iOS application with AI capabilities, running offline via Chaquopy or online via a backend API.

## Features

- **Demand Prediction**: Analyze market trends to predict product demand.
- **Smart Pricing**: Get AI-driven pricing recommendations based on competition.
- **Crop Health**: (In-development) Image analysis for disease detection.

## Installation

```bash
pip install farmdirect-core
```

## Usage

```python
from farmdirect_core.ai_engine import engine

# Predict Demand
result = engine.predict_demand('{"product_name": "Tomato", "price": 40, "season": "winter"}')
print(result)

# Get Pricing Advice
advice = engine.recommend_pricing("Tomato", 40.0, 45.0)
print(advice)
```

## License

This project is licensed under the **Business Source License 1.1 (BSL 1.1)**. See [LICENSE](LICENSE) for details.
