Skip to contents

Applies precedence among explicit instruction files, explicit instruction strings, and the package default instructions.

Usage

resolve_output_instructions(
  output_instructions = NULL,
  output_instructions_file = NULL
)

Arguments

output_instructions

Optional character scalar instructions.

output_instructions_file

Optional path to an instruction file.

Value

A character scalar instructions string.

Examples

resolve_output_instructions(
  output_instructions = "Return a short summary followed by structured JSON."
)
#> [1] "Return a short summary followed by structured JSON."