ai_prompt | R Documentation |
Sets a system-level prompt to be used with all AI search functions. When called with no arguments, returns the currently active prompt.
ai_prompt(prompt_name = NULL)
prompt_name |
Name of a prompt from the prompt library, or a custom prompt text.
Use |
Invisibly returns the active prompt text. If called without arguments, returns the active prompt visibly.
## Not run:
# Set a predefined prompt
ai_prompt("debugging")
# Set a custom prompt
ai_prompt("Explain this R error in simple terms with examples:")
# Check current active prompt
ai_prompt()
# Clear the system prompt
ai_prompt(NULL)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.