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.
See also
Other tidyprompt:
construct_prompt_text()
,
get_base_prompt()
,
is_tidyprompt()
,
print.tidyprompt()
,
tidyprompt()