← kwindla hultman kramer

Memory for voice AI agents (and composite function calling)

February 4, 2025

Memory for voice AI agents (and composite function calling) ...

There are several ways to store (and later, retrieve) conversation state. One of the simplest is just to define a couple of functions and use your local filesystem!

Here, @chadbailey59 shows how to do that, using @pipecat_ai function calling hooks and Gemini 2.0 Flash.

More notes in the 🧵

Source code is here:

[1]

My favorite thing about this demo is that it's a really nice example of composite function calling.

Composite function calling means that the LLM can flexibly call several functions in a row, chaining functions together to perform…

  1. https://github.com/pipecat-ai/pipecat/blob/main/examples/foundational/20d-persistent-context-gemini.py