Skip to content

Conversation

@victorbash400
Copy link

Gemini 3 models send an explicit STOP finish reason after tool calls, causing runAsyncImpl to terminate before processing the tool response.

Changes:

  • Track function responses in runAsyncImpl loop
  • Continue loop if pending function response exists
  • Include gemini-3 in isGemini2Model() for code executor compat

Gemini 3 models send an explicit STOP finish reason after tool calls,
causing runAsyncImpl to terminate before processing the tool response.

Changes:
- Track function responses in runAsyncImpl loop
- Continue loop if pending function response exists
- Include gemini-3 in isGemini2Model() for code executor compat
@google-cla
Copy link

google-cla bot commented Jan 2, 2026

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.

const modelName = extractModelName(modelString);

return modelName.startsWith('gemini-2');
return modelName.startsWith('gemini-2') || modelName.startsWith('gemini-3');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it contradicts the function name isGemini2Model, it would be better to create a separate function for checking gemini-3

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants