You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Assistant: Tool call to interact with installed help pages and vignettes #8016
One feature I’d really love to see in Positron Assistant is the ability to be able to set it to use vignettes and package documentation as contextual references. For example, I’ve recently been working on implementing a custom engine for tidymodels, and examples on this are quite limited. In my experience, LLM assistants like ChatGPT, Gemini, or even Copilot in VS Code often fall short in these niche R scenarios, I’ve ended up completing some tasks faster manually.
Being able to ground responses in actual package docs or vignettes could make a huge difference for complex workflows like this. I think it’d be a very compelling feature.
Reacted by David, Christophe Dervieux and Jennifer (Jenny) Bryan
I don't think we can take a dependency on this package, but its implementation and toolset is a helpful reference.
As an aside I think it'd be very helpful for us to provide a hook for R packages to register their own LM tools, so that packages like btw can integrate with Assistant on their own (without e.g. having the user do any paperwork to set up or run an MCP server). Wrote that up here: #8377
Activity
jmcphers commentedon Jul 2, 2025
The "btw" package already has examples of these language model tools (for R):
https://posit-dev.github.io/btw/
I don't think we can take a dependency on this package, but its implementation and toolset is a helpful reference.
As an aside I think it'd be very helpful for us to provide a hook for R packages to register their own LM tools, so that packages like btw can integrate with Assistant on their own (without e.g. having the user do any paperwork to set up or run an MCP server). Wrote that up here: #8377
cderv commentedon Jul 3, 2025
Just a note with current behavior related to this:
Currently, the assistant often tries to read the help page by doing
?xfun::from_rootThis does send in console, but it opens the help page in the help pane, which is seems the assistant does not get access too.
Maybe in the meantime, while this tool is not available, the assistant should not try to read the help page? Just idea for better user experience.
Add LLM tools for R package help & vignettes (#8421)
jonvanausdeln commentedon Jul 21, 2025
Verified Fixed
Positron Version(s) : 2025.08.0-69
OS Version(s) : Windows 11
Test scenario(s)
I was able to get assitant to look at help and documentation pages.
Add LLM tools for R package help & vignettes (#8421)