Skip to contents

Is this a prompt?

Usage

is_prompt(x, role)

is_prompt_user(x)

is_prompt_system(x)

is_prompt_assistant(x)

Arguments

x

An input.

Value

A logical value to indicate if it is a prompt or not.

See also

Examples

is_prompt(prompt_user("Hi!"))
#> [1] TRUE