Skip to content

fix(session/vertexai): populate FunctionCall and FunctionResponse IDs…#690

Open
ravyg wants to merge 1 commit intogoogle:mainfrom
ravyg:fix/679-vertexai-function-ids
Open

fix(session/vertexai): populate FunctionCall and FunctionResponse IDs…#690
ravyg wants to merge 1 commit intogoogle:mainfrom
ravyg:fix/679-vertexai-function-ids

Conversation

@ravyg
Copy link
Copy Markdown

@ravyg ravyg commented Mar 28, 2026

The aiplatformToGenaiContent function was not copying the Id field
from FunctionCall and FunctionResponse protobuf parts during
deserialization, even though createAiplatformpbContent correctly
serializes them. This caused function response events to be silently
dropped in multi-invocation sessions with tool calls, as the matching
logic relies on non-empty IDs.

Added a unit test for the round-trip to prevent regression.

Fixes #679

… during deserialization

The aiplatformToGenaiContent function was not copying the Id field from
FunctionCall and FunctionResponse protobuf parts, even though
createAiplatformpbContent correctly serializes them. This caused
function response events to be silently dropped in multi-invocation
sessions, as the matching logic relies on non-empty IDs.

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

Labels

None yet

Projects

None yet

1 participant