The deep_research() function sends a message to a provider's deep research endpoint.
Currently supported: Perplexity (sonar-deep-research via async API).
deep_research(.llm, .provider, .background = FALSE, ...)If .background = FALSE, an LLMMessage with the research reply.
If .background = TRUE, a tidyllm_research_job for use with check_job()/fetch_job().
An LLMMessage object containing the research question.
A function or function call specifying the provider (e.g., perplexity()).
Logical; if TRUE, returns a tidyllm_research_job immediately (default: FALSE).
Additional arguments passed to the provider's deep research function.