googleapis / googleapis/python-genai

Is it possible to provide the chat history to Gemini Live API?

Open
#1,733 3 comments 2 reactions 1 assignee Assigned to @kkorpal View on GitHub
priority: p3 type: question
Dominant language
Python
Stars
4k
Forks
1k
Avg merge
2d 11h
Merged PRs (30d)
40

Description

Thanks for stopping by to ask us a question! Please make sure to include:
- What you're trying to do
- What code you've already tried
- Any error messages you're getting

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

---

I am using Gemini Live API as a multi-model agent.
I am currently saving the generated transcriptions onto a database, for both the user and the model.

What I want to do is that, if the user reconnects to the same thread, I want to prepopulate the chat history of the current session with the messages from my database. Is there a way to provide these messages to the chat history of the Gemini Live session?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.