ai_prompt_register | R Documentation |
Adds a new prompt to the prompt library.
ai_prompt_register(name, prompt_text, overwrite = FALSE)
name |
Name for the new prompt. |
prompt_text |
The prompt text to register. |
overwrite |
Whether to overwrite an existing prompt with the same name. Default is FALSE. |
Invisibly returns the updated prompt library.
## Not run:
# Register a new prompt
ai_prompt_register(
"tidyverse",
paste("As a tidyverse expert, explain how to solve this problem using",
"dplyr, tidyr, and other tidyverse packages:"
)
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.