Package: tidyprompt Title: Prompt Large Language Models and Enhance Their Functionality Version: 0.4.0.9000 Authors@R: c(person(given = "Luka", family = "Koning", role = c("aut", "cre", "cph"), email = "koningluka@gmail.com"), person(given = "Tjark", family = "Van de Merwe", role = c("aut", "cph"), email = "t.vandemerwe@kennispunttwente.nl"), person(given = "Kennispunt Twente", role = "fnd", email = "info@kennispunttwente.nl")) Description: Easily construct prompts and associated logic for interacting with large language models (LLMs). 'tidyprompt' introduces the concept of prompt wraps, which are building blocks that you can use to quickly turn a simple prompt into a complex one. Prompt wraps do not just modify the prompt text, but also add extraction and validation functions that will be applied to the response of the LLM. This ensures that the user gets the desired output. 'tidyprompt' can add various features to prompts and their evaluation by LLMs, such as structured output, automatic feedback, retries, reasoning modes, autonomous R function calling, and R code generation and evaluation. It is designed to be compatible with any LLM provider that offers chat completion. License: GPL (>= 3) | file LICENSE Encoding: UTF-8 Roxygen: list(markdown = TRUE) RoxygenNote: 7.3.3 URL: https://github.com/KennispuntTwente/tidyprompt, https://kennispunttwente.github.io/tidyprompt/ BugReports: https://github.com/KennispuntTwente/tidyprompt/issues Depends: R (>= 4.1.0) Suggests: knitr, rmarkdown, testthat (>= 3.0.0), withr, here, callr, skimr, jsonvalidate, DBI, ellmer (>= 0.3.0), coro, ggplot2, mcptools, grid, webfakes VignetteBuilder: knitr Imports: dplyr, glue, httr2, jsonlite, stringr, utils, cli, R6, rlang, S7 Config/testthat/edition: 3 Config/pak/sysreqs: libicu-dev libssl-dev Repository: https://kennispunttwente.r-universe.dev Date/Publication: 2026-09-29 17:58:43 UTC RemoteUrl: https://github.com/kennispunttwente/tidyprompt RemoteRef: HEAD RemoteSha: 4bf791e1ef137961e479613669a97180a6654b88 NeedsCompilation: no Packaged: 2026-09-29 21:05:35 UTC; root Author: Luka Koning [aut, cre, cph], Tjark Van de Merwe [aut, cph], Kennispunt Twente [fnd] Maintainer: Luka Koning