agrillm helps turn farm decision questions into structured, reproducible workflows using large language models and APSIM-based analysis.

What this package does

The package currently supports a few simple tasks:

Installation

Install the development version from GitHub:

# install.packages("remotes")
remotes::install_github("byzheng/agrillm")

Quick start

library(agrillm)

# See the default crop names
agrillm_options$get("crops")

# Classify a decision question
resolve_decision("What about sowing time choice?")

To use the AI features, make sure your Azure LLM settings are available. The package expects the Azure environment variables AZURE_OPENAI_API_KEY and AZURE_ENDPOINT_URL to be set.

Getting help

If you find a bug or want to suggest a feature, please open an issue at: https://github.com/byzheng/agrillm/issues

License

MIT License. See the LICENSE file for details.