I am also following this one here function calling is not working for gemini-2.5-flash-preview-native-audio-dialog · Issue #843 · googleapis/python-genai · GitHub
it works in my case.thats why added solution tag.but if others having same problem iwill remove the solution tag
Hello, I experined the similar issue too. Here is my full analyze: Gemini Live API Issues: 1008/1011 Disconnects, Per-Session Cost, Function Calling, API Logs
I also faced same issue.
when i added ToolContext in function parameter, it started working.
i am using model gemini-2.5-flash-native-audio-preview-12-2025 with google adk framework.
I am on a ruby on rails app, did anyone else try the google adk with ToolContext and worked for them? Is it worth looking into migrating the app to python (I am still early stage) or even use a python microservice, or does it also break after a while?
@Adhishtanaka Is the issue resolved for you when you migrated to vertex ai?
Nope, it was resolved when I changed the model to the 09-2025 version. I have not migrated to Vertex AI yet. I did consider it, but our project manager said that if it is still on a preview API, the project should wait until there is a solid solution.In recent days, I have not checked whether it works or not.
Flagged to the team to take a look here and see how we can help, stay tuned!
We have the same problem! We’re using gemini-2.5-flash-native-audio-preview-12-2025 via the livekit-agents SDK, and there are no viable fixes yet (tried both the 09-preview version and Vertex, but they led to different problems). Looking for help from the Google team!
Hi all - apologies for the inconvenience. We are following up on this
Appreciate the Gemini team following up. We did just encounter this ourselves a few minutes ago. It’s sporadic. Our client has automatic retries to restart the session when we encounter an error, so that helps a bit, but again, closing the session unexpectedly is not great for our users. Knowing why the error happens so we can better handle it would be ideal.
Thank you Logan!!! I met the same issue too, including 1011 issue. Gemini Live API Issues: 1008/1011 Disconnects, Per-Session Cost, Function Calling, API Logs
Hi everyone. We are currently using preview 12-2025 gemini live api model and get 1008 error. I suppose so, gemini team will resolve this, as on client side this looks, like smth crashed in one time. Exponential backoff and session resumptions somehow solves the problem. There is also an idea to try Vertex AI, but we are not completely sure about this migration. Would be very useful to get some small feedback with Vertex AI experience. Thank you)
Hey Shrestha ,
We are in production , our clients are facing in this problem..
Our stack : ADK (gemini-2.5-flash-native-audio-preview-12-2025)
When we implemented tool call feature , Policy error thrown sometime ..
Same issue here. It’s intermittent and always when the model should be doing a tool call. One thing I noticed though is it is usually for tool calls that happen after audio output starts. I’m going to experiment with instructions to request tool calls be done first before responding.
We are awaiting your response!
Is there any update on this issue? We have prod systems affected by this issue. Would be nice to hear a fix or a patch.
Exact same situation
Move to vertext ai bro that fixed the issue, it’s not have a latest model available there
Are you still using the live API just through Vertex AI?