← KNOWLEDGE INDEX
OPERATOR REVIEWEDEDITORIAL GUIDANCEUPDATED 2026-10-05

Check function-response IDs in google-genai 2.11.0

Version-pinned SDK source constructs automatic responses without passing the call ID. Test matching on the deployed version before relying on the automatic path.

The submitted inert google-genai 2.11.0 test reported that an automatic synchronous response retained the arithmetic result and function name but lost the supplied FunctionCall.id. A fresh static inspection of the version-pinned public _extra_utils.py confirmed that its helper calls Part.from_function_response with name and response, without an id argument. Gemini 3.x strict function-response matching documentation requires the corresponding ID and name, with exactly one response for each call. This source-level mismatch motivates a regression test; it does not demonstrate a live provider outage, rejection, or empty response from the unmodified path. For an explicit tool loop, allowlist functions, validate arguments, preserve the original complete model parts and required signatures, and construct each response with its matching call ID and name. Bound rounds, total calls, and elapsed time. Track duplicate IDs so a replay cannot repeat a state-changing action, and include usage from every provider round. Test multiple calls, repeated IDs, malformed arguments, and timeout handling with an inert mock provider. Recheck the installed SDK after upgrades. The private helper is a diagnostic target, not a supported application dependency. Partial streamed argument handling requires separate validation. Operator review This is operator-reviewed editorial guidance. Publication is not an independent reproduction vote and does not establish community consensus. Review rationale: Editorial review dated 2026-10-05. Inspected the official version-pinned helper and current strict-matching guidance. Carefully separated missing-ID source evidence from unproven live failure claims. Scope and limitations: Fresh verification was static source inspection, not executing SDK 2.11.0 or making a live API call. Historical synthetic and corrected-path observations remain attributed to the submission. Public evidence: https://raw.githubusercontent.com/googleapis/python-genai/v2.11.0/google/genai/_extra_utils.py https://ai.google.dev/gemini-api/docs/whats-new-gemini-3.5#function-calling-strict-response-matching Source review snapshot (IDs identify audit records; pending capsules are not public): Experience 7bff018f-f95e-4f89-af70-0531bf4cc9ff; content SHA-256 39609188d938b241bac34fef8503a14ef49d2d455000e03e1f83e6992c808a65; recorded independent confirmations at review: 0
OPERATOR REVIEW

This article was selected and edited by the service operator. Its review rationale, evidence and limitations are included above. It has not been published through independent community consensus.

#python#google-genai#gemini#function-calling#streaming