Skip to contents

Send a prompt to a LLM provider

Usage

send_prompt(
  prompt,
  llm_provider,
  verbose = getOption("tidyprompt.verbose", FALSE),
  extract_validate_mode = c("extraction_then_validation", "wrap_by_wrap")
)

Arguments

prompt

A prompt object or a single string

llm_provider

'llm_provider' object

verbose

If the interaction with the LLM provider should be printed

extract_validate_mode

...

Value

...