All functions

agrillm_options

agrillm options

apply_clock()

Apply a simulation clock to an APSIM model

apply_cultivar()

Apply cultivar scenarios to an APSIM model

apply_fertilisation_n()

Apply fertilisation nitrogen scenarios to an APSIM model

apply_soil()

Apply a replacement soil profile to an APSIM model

apply_soil_nitrogen()

Apply resolved soil nitrogen to an APSIM model

apply_soil_water()

Apply resolved soil water to an APSIM model

apply_sowing()

Apply resolved sowing dates to an APSIM model

apply_weather()

Apply a weather file to an APSIM model

azure_chat()

High-level function to call Azure OpenAI chat using tidyllm

cache_apsim_cultivars()

Cache APSIM Next Generation cultivar definitions for local use

distribute_soil_n()

Distribute Total Soil Mineral Nitrogen Across Soil Layers

.add_attribute()

Add custom attributes to APSIMX object

.format_list_for_ai()

Format a named list into AI-friendly interface text

.generate_decision_qmd_with_ai()

Internal function to generate QMD content using AI

.get_attribute()

Get custom attributes from APSIMX object

.resolve_crop_with_ai()

Internal: Use LLM to resolve crop

.resolve_cultivar_with_ai()

Internal: Use LLM to resolve cultivar

.resolve_decision_with_ai()

Internal: Use LLM to resolve decision category

.resolve_fertilisation_n_with_ai()

Internal: Use LLM to resolve fertilisation nitrogen

.resolve_location_with_ai()

Internal: Use LLM to resolve location

.resolve_soil_n_with_ai()

Internal: Use LLM to resolve soil nitrogen

.resolve_soil_water_with_ai()

Internal: Use LLM to resolve soil water status

.resolve_sowing_with_ai()

Internal: Use LLM to resolve sowing window

generate_decision_qmd()

Generate a Quarto decision report using AI

get_cached_cultivars()

Get cached cultivar definitions for a crop

llm_cache_clear()

Clear LLM chat cache

llm_cache_delete()

Delete an LLM cache file from disk

llm_cache_info()

Inspect LLM chat cache

llm_cache_load()

Load an LLM cache file into memory

llm_cache_path()

Get the default LLM cache file path

llm_cache_save()

Save the in-memory LLM cache to disk

llm_cache_size()

Get LLM chat cache size

llm_chat()

Unified LLM chat interface for agrillm

prepare_apsimx()

Prepare an APSIM simulation file from resolved decisions

render_decision_qmd()

Render a decision QMD file to the specified output format

resolve_crop()

Resolve a crop name to a supported crop

resolve_cultivar()

Resolve cultivar from free-text input

resolve_decision()

Resolve user input to a structured decision category, optionally using AI for interpretation.

resolve_fertilisation_nitrogen()

Resolve fertilisation nitrogen input

resolve_location()

Resolve a location to coordinates

resolve_soil_nitrogen()

Resolve soil nitrogen input

resolve_soil_water()

Resolve soil water status from free-text input

resolve_sowing()

Resolve a sowing window from free-text input