build_prompt: Build a screening prompt for one record

View source: R/criteria.R

build_promptR Documentation

Build a screening prompt for one record

Description

Renders the standard prompt template shipped in inst/prompts/standard.txt with the criteria and the record's title/abstract substituted in. Users can inspect the returned prompt string to confirm the LLM is being asked the right question, and power users can wrap or replace this function.

Usage

build_prompt(criteria, record)

Arguments

criteria

A screenllm_criteria object.

record

A one-row data frame or named list with id, title, abstract.

Value

A character string ready to be sent as an LLM prompt.


screenllm documentation built on Sept. 24, 2026, 5:11 p.m.