Learn R Programming

tidyllm (version 0.6.0)

fetch_job: Fetch the Results of a Job

Description

fetch_job() collects what check_job() reports on: the messages of a finished batch, the report of a background research job, or the LLMMessage of a chat from send_chat(). On a chat it waits for the reply if it has not arrived yet.

Usage

fetch_job(.job, .provider = NULL, ...)

Value

Fetched results; type depends on .job.

Arguments

.job

A tidyllm_chat_job, a tidyllm_research_job, or a batch object from send_batch().

.provider

A provider function; required for batch jobs and ignored by the others.

...

Additional arguments passed to the underlying function.