Skip to content

fix(go/plugins/googlegenai): Tool calls with streaming #2980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

quinlanjager
Copy link
Contributor

@quinlanjager quinlanjager commented May 28, 2025

This change resolves a bug (?) that caused googlegenai gemini models to return an error when generating streaming responses with tools.

The issues is detailed here with a test module: #2978

There was a comment that noted only text is supported while streaming. Not sure why this would be the case. I didn't have any issues generating streaming responses with these changes.

Checklist (if applicable):

Copy link

google-cla bot commented May 28, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@quinlanjager quinlanjager changed the title fix(go): Gemini supports tool calls during streaming fix(go): Google GenAI models support tool calls during streaming May 28, 2025
@quinlanjager quinlanjager changed the title fix(go): Google GenAI models support tool calls during streaming fix(go): Google GenAI models support tool calls while streaming May 28, 2025
@quinlanjager quinlanjager changed the title fix(go): Google GenAI models support tool calls while streaming fix(go): Google GenAI models support tool calls with streaming May 28, 2025
@quinlanjager quinlanjager changed the title fix(go): Google GenAI models support tool calls with streaming fix(go): Google Gemini models support tool calls with streaming May 28, 2025
@quinlanjager quinlanjager force-pushed the fix/streaming-gemini-response-supports-all-parts branch 2 times, most recently from 7a4889c to 0f65a23 Compare May 29, 2025 06:46
@hugoaguirre hugoaguirre changed the title fix(go): Google Gemini models support tool calls with streaming fix(go/plugins/googlegenai): Tool calls with streaming May 29, 2025
@hugoaguirre hugoaguirre linked an issue May 29, 2025 that may be closed by this pull request
@hugoaguirre hugoaguirre self-requested a review May 29, 2025 15:58
@hugoaguirre hugoaguirre requested a review from apascal07 May 29, 2025 16:01
@hugoaguirre hugoaguirre merged commit 3c716b0 into firebase:main May 30, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Go] Streaming Tool Usage with Gemini returns an error
2 participants