Retrieves the results of a completed Gemini batch and updates the provided list of LLMMessage objects with the assistant's responses, matching by original list order.
Usage
fetch_gemini_batch(
.llms,
.batch_name = NULL,
.timeout = 60,
.max_tries = 3,
.dry_run = FALSE
)Arguments
- .llms
List of
LLMMessageobjects (as fromsend_gemini_batch()), must have abatch_idattribute if.batch_nameis not given.- .batch_name
(Optional) Character; batch operation name (e.g. "batches/xyz123"). If not provided, is taken from
attr(.llms, "batch_id").- .timeout
Integer; request timeout in seconds (default: 60).
- .max_tries
Integer; maximum retry attempts (default: 3).
- .dry_run
Logical; if
TRUE, returns the GET request object (default: FALSE).
