Skip to content

Conversation

@roshanasingh4
Copy link
Contributor

Fixes a Gemini 3 validation error when replaying history containing tool calls without thoughtSignature (e.g. when the previous turn came from Claude via Antigravity).

Approach:

  • In packages/ai/src/providers/google-shared.ts detect gemini-3* models and, when a tool call has no thoughtSignature, serialize the tool call as plain text instead of emitting a functionCall part.
  • Keep signed tool calls unchanged (still emitted as functionCall).

Regression test:

  • Added packages/ai/test/google-shared-gemini3-unsigned-tool-call.test.ts to assert unsigned tool calls become text parts for Gemini 3.

Context: moltbot/moltbot#922

@badlogic
Copy link
Owner

Cheers!

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