Skip to contents

The deep_research() function sends a message to a provider's deep research endpoint. Currently supported: Perplexity (sonar-deep-research via async API).

Usage

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

Arguments

.llm

An LLMMessage object containing the research question.

.provider

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

.background

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

...

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

Value

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