| llm_methods_text | R Documentation |
Turns the diagnostic columns of a finished run into a first draft of the transparency paragraph that journals and methodological guidelines now ask for: which model(s) and provider(s), how many calls, the inference settings that were recorded, token totals, and the failure/truncation counts. Edit the draft; it states only what the result frame actually contains and marks anything unknown as such.
llm_methods_text(x, prefix = NULL, task = NULL)
x |
A data frame from |
prefix |
For an |
task |
Optional one-clause description of what the model was asked to
do (e.g., |
A character scalar (one paragraph). Print it with cat().
llm_usage(), llm_log_enable() for the per-call audit trail.
res <- tibble::tibble(
model = "openai/gpt-oss-20b", provider = "groq",
success = c(TRUE, TRUE), finish_reason = c("stop", "stop"),
sent_tokens = c(10L, 12L), rec_tokens = c(5L, 7L),
total_tokens = c(15L, 19L), reasoning_tokens = NA_integer_,
duration = c(0.4, 0.5)
)
cat(llm_methods_text(res, task = "to classify sample sentences"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.