Getting Started with LLM APIs in R
2025-11-03
You write some words
The LLM writes some more words
You use those words
On their own, can LLMs… access the internet? run code? send an email? interact with the world?
My training only includes data up until October 2023, and I do not
have access to real-time updates or event-specific details beyond that.
For the most accurate and current information about the keynote
speakers, I recommend visiting the official R/Pharma 2025
website or checking their latest event announcements.
I'm unable to provide real-time weather updates.
For the most current weather in Minneapolis,
please check a reliable weather service or app like
Weather.com, AccuWeather, or your local weather provider.
Today is October 27, 2023.
a.k.a. functions, tool calling or function calling
Bring real-time or up-to-date information to the model
Let the model interact with the world
👩💻 _demos/19_tools/19_weather-tool.R
10_quiz-game-2I’ve given you a function that plays a sound when called (play_sound()).
Your job: give the model the ability to play sounds in the Quiz Show game we made earlier.
You will need to fill out the tool definition and register the tool.
06:00
Define the tool function inside the server
You can update reactive values in the tool function!
querychat: https://github.com/posit-dev/querychat
ggbot2: https://github.com/tidyverse/ggbot2
Databot: https://positron.posit.co/databot.html
Posit AI newsletter: https://posit.co/blog/?post_tag=ai-newsletter