Function Calling: Teaching Tools to the Assistant

This post is part of the Voice Assistant on Raspberry Pi series.

In article #5, we injected weather data into every conversation, even for questions like “what’s your name?”. That wastes tokens. Function calling fixes this: the LLM decides when it needs a tool and only calls it when the question actually warrants it.

The complete code for this article is available on GitHub.

[Read More]

Real-Time Weather and Swapping to the Claude API

This post is part of the Voice Assistant on Raspberry Pi series.

The assistant responds well, but it has no idea what the weather is like outside. We wire up Open-Meteo, a free, key-less weather API. And while we’re at it, we swap Ollama for the Claude API: a single line in appsettings.json.

The complete code for this article is available on GitHub.

[Read More]