Learn R Programming

llmhelper (version 1.0.0)

set_prompt: Set system and user prompts for LLM interaction

Description

This function creates a prompt object with system and user prompts using the tidyprompt package for structured LLM communication.

Usage

set_prompt(
  system = "You are an AI assistant specialized in bioinformatics.",
  user = "Hi"
)

Value

A prompt object configured with system and user prompts

Arguments

system

The system prompt to set context and behavior (default: bioinformatics assistant)

user

The user prompt or question

Author

Zaoqu Liu; Email: liuzaoqu@163.com