llm_par_resume: Resume failed parallel LLM calls

View source: R/LLM_parallel_utils.R

llm_par_resumeR Documentation

Resume failed parallel LLM calls

Description

Finds rows where success is FALSE or NA in the output of call_llm_par(), re-runs them, and patches the results back into the original data frame.

Usage

llm_par_resume(results, tries = 3, ...)

Arguments

results

Output from call_llm_par() (must contain config, messages, and success columns).

tries

Number of retries per call. Default 3.

...

Passed to call_llm_par().

Value

The patched data frame with re-run results filled in.

See Also

call_llm_par()

Examples

## Not run: 
results <- call_llm_par(experiments)
results <- llm_par_resume(results, tries = 3)

## End(Not run)


LLMR documentation built on July 11, 2026, 1:06 a.m.