Thin wrapper that shells out to the rmorie command-line agent (a
separate, optional binary from rmorie-cli). The agent can run R,
read/write files, remember notes, and use any configured model backend
(Anthropic, OpenAI-compatible, Google Gemini, or a local Ollama model).
The CLI is the single implementation; this function only forwards to it,
so every MORIE package can offer agentic help without duplicating logic.
Arguments
- task
Character scalar. The task/prompt for the agent.
- model
Optional model id, e.g.
"claude-sonnet-5","gpt-4o","gemini-2.5-flash", or any tag your Ollama server serves. Defaults to the CLI's default model.- backend
Optional backend:
"auto"(route on the model id),"anthropic","openai","gemini", or"ollama".- dry_run
Logical; if
TRUEthe agent only plans (no network).
