test: add e2e test for Gemini multi-turn tool calls with reasoning#343
Merged
robert-j-y merged 1 commit intomainfrom Jan 23, 2026
Merged
test: add e2e test for Gemini multi-turn tool calls with reasoning#343robert-j-y merged 1 commit intomainfrom
robert-j-y merged 1 commit intomainfrom
Conversation
kesavan-byte
pushed a commit
to osm-API/ai-sdk-provider
that referenced
this pull request
Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add e2e tests to verify that reasoning_details (thought signature) are properly preserved in tool calls when using Gemini models with thinking enabled across multi-turn conversations.
The providerOptions containing reasoning_details must be preserved when passing response.messages from a first request to a second request, otherwise Gemini will reject the continuation. This was fixed in AI SDK v6.0.
Tests both
streamTextandgenerateTextAPIs to ensure the fix works for both.Closes #314
Checklist
Changeset