This function retrieves a prompt template from either:
the user registry (see
register_prompt_template), ora built-in template stored under
inst/templates.
Details
The function first checks user-registered templates, then looks for
a built-in text file inst/templates/<name>.txt. The special
name "default" falls back to set_prompt_template()
when no user-registered or built-in template is found.
Examples
# Get the built-in default template
tmpl_default <- get_prompt_template("default")
# List available template names
list_prompt_templates()
#> [1] "default" "test1" "test2" "test3" "test4" "test5"