The deep_research() function sends a message to a provider's deep research endpoint.
Currently supported: Perplexity (sonar-deep-research via async API).
Arguments
- .llm
An
LLMMessageobject containing the research question.- .provider
A function or function call specifying the provider (e.g.,
perplexity()).- .background
Logical; if TRUE, returns a
tidyllm_research_jobimmediately (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().
