Skip to content

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

Open
ravyg wants to merge 2 commits intogoogle:mainfrom
ravyg:fix/679-vertexai-function-ids
Open

fix(session/vertexai): populate FunctionCall and FunctionResponse IDs…#690
ravyg wants to merge 2 commits 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

ravyg and others added 2 commits March 27, 2026 17:08
… 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
@ravyg
Copy link
Copy Markdown
Author

ravyg commented Apr 14, 2026

Hi @indurireddy-TF — I saw you self-assigned #679. Just a heads-up that this PR (#690, opened Mar 28) already implements the fix you described in your comment there: it populates Id on both FunctionCall and FunctionResponse in aiplatformToGenaiContent, and adds a round-trip unit test to prevent regression. CLA is green and there are no conflicts.

Would you be able to take a look, or point me to the right reviewer? Happy to adjust the diff — smaller scope, different test layout, or anything else — if that'd help get it over the line.

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