agrillm helps turn farm decision questions into structured, reproducible workflows using large language models and APSIM-based analysis.
The package currently supports a few simple tasks:
resolve_decision()
generate_decision_qmd()
llm_chat()
Install the development version from GitHub:
# install.packages("remotes")
remotes::install_github("byzheng/agrillm")
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.
If you find a bug or want to suggest a feature, please open an issue at: https://github.com/byzheng/agrillm/issues