ai_prompt_register: Register a New AI Prompt

View source: R/ai-prompts.R

ai_prompt_registerR Documentation

Register a New AI Prompt

Description

Adds a new prompt to the prompt library.

Usage

ai_prompt_register(name, prompt_text, overwrite = FALSE)

Arguments

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.

Value

Invisibly returns the updated prompt library.

Examples

## 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)


coatless/searcher documentation built on June 2, 2025, 10:37 a.m.