Configure a model to behave a certain way.

instruct(x, ...)

Arguments

x

The Agent object

...

Objects that are converted to text and pasted together into a block of instructions for the model.

Value

The input Agent object except with a new set of instructions.

Author

Michael Lawrence

See also

output_as, for instructing a model on its output format. system_prompt_as for more advanced system prompt construction.

Examples

if (FALSE) { # \dontrun{
    llama() |> instruct("Return only first names") |> predict("Creators of R")
} # }