Man pages for LLMR
Interface for Large Language Model APIs in R

anes_2024_personasExample participant profiles derived from ANES 2024
bind_toolsBind tools to a config (provider-agnostic)
build_factorial_experimentsBuild Factorial Experiment Design
cache_llm_callCache LLM API Calls
call_llmCall an LLM (chat/completions or embeddings) with optional...
call_llm_broadcastParallel API calls: Fixed Config, Multiple Messages
call_llm_compareParallel API calls: Multiple Configs, Fixed Message
call_llm_parParallel LLM Processing with Tibble-Based Experiments (Core...
call_llm_par_structuredParallel experiments with structured parsing
call_llm_par_tagsParallel experiments with tag parsing
call_llm_robustRobustly Call LLM API (Simple Retry)
call_llm_streamStream a chat completion token by token
call_llm_sweepParallel API calls: Parameter Sweep - Vary One Parameter,...
call_llm_toolsCall an LLM with tools and run the tool loop
diagnosticsMachine-readable diagnostics for an LLMR-family result object
disable_structured_outputDisable Structured Output (clean provider toggles)
enable_structured_outputEnable Structured Output (Provider-Agnostic)
ensure_alternating_messagesMake a message array provider-safe (alternating,...
expand_llm_configExpand an LLM Config Grid
get_batched_embeddingsGenerate Embeddings in Batches
llm_add_request_hashAppend the audit-log request hash to a parallel-results frame
llm_agreementAgreement across replicated LLM annotations
llm_api_key_envDeclare an API key sourced from an environment variable
llm_batch_cancelCancel a batch job
llm_batch_fetchFetch the results of a batch job
llm_batch_statusCheck the status of a batch job
llm_batch_submitSubmit a batch job to a provider's batch API
llm_chat_sessionChat Session Object and Methods
llm_configCreate an LLM configuration (provider-agnostic)
llm_cross_designCross a data frame with LLM configs
llm_failuresList the rows of an LLM run that failed or were truncated
llm_fnApply an LLM prompt over vectors/data frames
llm_fn_structuredVectorized structured-output LLM
llm_fn_tagsVectorized LLM with tag extraction
llm_hashContent hash for research artifacts
llm_judgeLLM-as-a-Judge Evaluation
llm_log_enableRecord every LLM call in a local audit log
llm_logprobsExtract token log-probabilities from a response
llm_log_readRead an LLMR audit log into records and a manifest
llm_methods_textDraft a methods-section paragraph from an LLM run
llm_mutateMutate a data frame with LLM output
llm_mutate_structuredData-frame mutate with structured output
llm_mutate_tagsData-frame mutate with XML-like tag output
llm_par_resumeResume failed parallel LLM calls
llm_parse_rowpack_tagsParse a batched, row-wrapped tag response into per-row field...
llm_parse_structuredParse structured output emitted by an LLM
llm_parse_structured_colParse structured fields from a column into typed vectors
llm_parse_tagsParse XML-like tags emitted by an LLM
llm_parse_tags_colParse XML-like tag fields from a column
llm_persona_demographic_fieldsWhich columns of a persona frame are demographics
llm_persona_dictionaryThe question dictionary attached to a persona data frame
llm_persona_overviewA compact overview of a persona frame for display
llm_persona_splitSplit one persona into labeled demographics and labeled...
llm_previewPreview a tidy LLM call without spending anything
llm_render_messagesRender tidy messages without calling any API
llm_replicateRun the same prompt several times per row
llm_request_from_logRebuild a callable request from a logged record
llm_request_hashStable request hash for an LLM call
llm_response_recordFlatten one LLM response to a provenance row
LLMR-packageLLMR: unified LLM workflows for R
llmr_responseLLMR Response Object
llm_toolDefine a tool the model may call
llm_tool_signatureA stable signature for a tool's identity
llm_usageSummarize token usage and outcomes of an LLM run
llm_uuidA short, sortable, process-unique identifier
llm_validate_persona_frameCheck that a data frame follows the persona contract
llm_validate_structured_colValidate structured JSON objects against a JSON Schema...
log_llm_errorLog LLMR Errors
parse_embeddingsParse Embedding Response into a Numeric Matrix
print.llm_configPrint an LLM configuration with the API key masked
reportDraft a methods-section report from an LLMR-family result...
resetReset a stateful object to its initial position
reset_llm_parallelReset Parallel Environment
setup_llm_parallelSetup Parallel Environment for LLM Processing
tool_callsExtract tool calls from a response
transcript_as_messagesBuild a role-flipped message array from a multi-speaker...
LLMR documentation built on July 11, 2026, 1:06 a.m.