Unified LLM chat interface for agrillm
llm_chat(
prompt,
use_cache = FALSE,
persist_cache = TRUE,
cache_path = NULL,
...
)The prompt or message to send to the LLM.
Logical. If TRUE, reuse cached backend responses for
identical requests within the current R session. Default: FALSE.
Logical. If TRUE, persist cached responses to disk so
they can be reloaded in later sessions. Default: TRUE.
Optional character string path to the cache file used when
persist_cache = TRUE. Default: .cache_agrillm.rds in the current working
directory.
Additional arguments passed to the backend chat function.
The response from the LLM backend.