Skip to content

fix(vertexai): preserve signed thought text parts - #2052

Merged
gold-silver-copper merged 3 commits into
mainfrom
fix-vertexai-thought-text-signature
Jul 8, 2026
Merged

fix(vertexai): preserve signed thought text parts#2052
gold-silver-copper merged 3 commits into
mainfrom
fix-vertexai-thought-text-signature

Conversation

@gold-silver-copper

Copy link
Copy Markdown
Contributor

Summary

Verification

  • cargo fmt
  • cargo test -p rig-vertexai -- --nocapture
  • cargo clippy -p rig-vertexai --all-targets -- -D warnings

pdesainteagathe and others added 3 commits July 7, 2026 11:48
Gemini 2.5/3.x thinking models attach an opaque thoughtSignature to functionCall
parts that must be echoed back on subsequent turns, else Vertex rejects the request
with INVALID_ARGUMENT. Capture it into ToolCall.signature (base64) on the read side
and echo it back via Part::set_thought_signature on the write side. A malformed
signature is dropped with a warning rather than failing the whole turn; a
signature-bearing part with no function_call/text is logged before being dropped.

Mirrors the pattern already present in the direct Gemini provider (rig PR #1396).
@gold-silver-copper
gold-silver-copper added this pull request to the merge queue Jul 8, 2026
Merged via the queue into main with commit c9788df Jul 8, 2026
6 checks passed
This was referenced Jul 11, 2026
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