Hello, I'm trying to control the chat context of t...
# agents
a
Hello, I'm trying to control the chat context of the gemini realtime using
agent.update_chat_ctx()
but it show me this warning
WARNING livekit.plugins.google - Gemini Live does not support removing messages
, does anyone know how to solve it?
l
Gemini doesn't support message removal, but you should be able to
add_message
. There is also
update_instructions
, https://docs.livekit.io/reference/python/v1/livekit/agents/index.html#livekit.agents.Agent.update_instructions, if you want to make significant modifications, but that will essentially restart the session.