% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scan_prompt.R
\name{preflight_check}
\alias{preflight_check}
\title{Preflight-check a prompt}
\usage{
preflight_check(
  text,
  policy = "enterprise_default",
  reviewer = NULL,
  checks = "rules",
  redact = TRUE,
  redaction = NULL,
  scanners = scanner_options(),
  show_tokens = FALSE
)
}
\arguments{
\item{text}{Prompt text.}

\item{policy}{A \code{shieldr_policy} or built-in policy name such as \code{"comprehensive"}.}

\item{reviewer}{Optional reviewer function or object with \verb{$chat()}.}

\item{checks}{One of \code{"rules"}, \code{"nlp"}, \code{"llm"}, or \code{"both"}.}

\item{redact}{Whether to redact matched spans in \code{text_clean}.}

\item{redaction}{Optional redaction strategy from \code{\link[=redaction_strategy]{redaction_strategy()}}.
Ignored when \code{redact = FALSE}.}

\item{scanners}{Optional scanner configuration from \code{\link[=scanner_options]{scanner_options()}}.}

\item{show_tokens}{Whether to attach token counts when \code{ellmer} is available.}
}
\value{
A \code{shieldr_report}.
}
\description{
Backward-compatible alias for \code{\link[=scan_prompt]{scan_prompt()}}.
}
\examples{
preflight_check("hello")
preflight_check("hello", show_tokens = TRUE)
}
