Skip to contents

Get prompt wraps from tidyprompt

Usage

get_prompt_wraps(
  tidyprompt,
  order = c("default", "modification", "evaluation")
)

Arguments

tidyprompt

A tidyprompt object

order

The order in which to return the prompt wraps. Options are "default", "modification", and "evaluation". "default" returns the prompt wraps in the order they were added. "modification" returns the prompt wraps in the order of "unspecified", "break", "mode", "tool"; this is the order in which the prompt wraps are applied to the base prompt when constructing the prompt text. "evaluation" returns the prompt wraps in the order of "tool", "mode", "break", "unspecified"; this is the order in which the prompt wraps are applied to the LLM response when extracting and validating.

Value

A list of prompt wraps from the tidyprompt