Crandore Hub

tidyprompt

Prompt Large Language Models and Enhance Their Functionality

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.

Versions across snapshots

VersionRepositoryFileSize
0.4.0 rolling linux/jammy R-4.5 tidyprompt_0.4.0.tar.gz 791.7 KiB
0.4.0 rolling linux/noble R-4.5 tidyprompt_0.4.0.tar.gz 791.6 KiB
0.4.0 rolling source/ R- tidyprompt_0.4.0.tar.gz 270.5 KiB
0.4.0 latest linux/jammy R-4.5 tidyprompt_0.4.0.tar.gz 791.7 KiB
0.4.0 latest linux/noble R-4.5 tidyprompt_0.4.0.tar.gz 791.6 KiB
0.4.0 latest source/ R- tidyprompt_0.4.0.tar.gz 270.5 KiB
0.4.0 2026-04-26 source/ R- tidyprompt_0.4.0.tar.gz 270.5 KiB
0.4.0 2026-04-23 source/ R- tidyprompt_0.4.0.tar.gz 270.5 KiB
0.3.0 2026-04-09 windows/windows R-4.5 tidyprompt_0.3.0.zip 730.9 KiB
0.0.1 2025-04-20 source/ R- tidyprompt_0.0.1.tar.gz 176.5 KiB

Dependencies (latest)

Imports

Suggests