Learn R Programming

tidyllm (version 0.8.0)

deep_research: Run Deep Research via a Provider

Description

The deep_research() function sends a message to a provider's deep research endpoint. Currently supported: OpenAI (deep research models via the background API).

Usage

deep_research(.llm, .provider, .background = FALSE, ...)

Value

If .background = FALSE, an LLMMessage with the research reply. If .background = TRUE, a tidyllm_research_job for use with check_job()/fetch_job().

Arguments

.llm

An LLMMessage object containing the research question.

.provider

A function or function call specifying the provider (e.g., openai()).

.background

Logical; if TRUE, returns a tidyllm_research_job immediately (default: FALSE).

...

Additional arguments passed to the provider's deep research function.