View source: R/summarise_function_with_LLM.R
create_prompt | R Documentation |
Uses the function arguments and function body as inputs to create a prompt for the LLM.
create_prompt(foo_arguments, foo_body, foo_name, foo_desc, foo_title)
foo_arguments |
the arguments to the function |
foo_body |
the body of the function |
foo_name |
function name |
foo_desc |
function description |
foo_title |
function title |
a single prompt in the form of a character string
create_prompt(
foo_arguments = LETTERS[1:3],
foo_body = "D <- A+B+C; return(D)",
foo_name = "calculate_QALYs",
foo_desc = "This function calcs QALYs",
foo_title = "Calculate the QALYs")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.