create_prompt {assertHE} | R Documentation |
Create a prompt for a LLM
Description
Uses the function arguments and function body as inputs to create a prompt for the LLM.
Usage
create_prompt(foo_arguments, foo_body, foo_name, foo_desc, foo_title)
Arguments
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 |
Value
a single prompt in the form of a character string
Examples
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")
[Package assertHE version 1.0.0 Index]