We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm getting the sense that listing all installed packages is a high token count, low quality answer.
btw::btw_tool_get_installed_packages() |> rtiktoken::get_token_count("gpt-4o") |> sum() #> [1] 12254
Even just using CSV formatting would reduce the token count (but I have ~600 something packages installed):
installed.packages(fields = c("Package", "Title")) |> dplyr::as_tibble() |> (\(x) x[, c("Package", "Title")])() |> readr::write_csv(file = stdout()) |> capture.output() |> paste(collapse = "\n") |> rtiktoken::get_token_count("gpt-4o") #> [1] 8126
There's certainly a place for this kind of tool, but in practice I think it'd be better to have a few variants of the same kind of tool:
sessioninfo::session_info()
renv.lock
The text was updated successfully, but these errors were encountered:
btw_tool_session_package_info()
No branches or pull requests
I'm getting the sense that listing all installed packages is a high token count, low quality answer.
Even just using CSV formatting would reduce the token count (but I have ~600 something packages installed):
There's certainly a place for this kind of tool, but in practice I think it'd be better to have a few variants of the same kind of tool:
sessioninfo::session_info()
#27 is one variant of thisrenv.lock
might be anotherThe text was updated successfully, but these errors were encountered: