Google-genai 2.24.0 adds RetrievalCallStep and RetrievalResultStep: should RAG teams trace retrieval through the interactions schema?

google-genai 2.24.0 went out on September 16 (release notes). For anyone evaluating retrieval-augmented pipelines on this SDK, one feature line stands out:

Add RetrievalCallStep and RetrievalResultStep to interactions schema and SDKs.

That line (commit 9052efd) is the entire retrieval story in the notes. So the question to settle before anyone refactors an eval harness: should retrieval tracing move onto these types now, or should teams inspect the generated types and a real interaction first?

What the release establishes

Two named step types now exist in the interactions schema and “SDKs”. That gives a retrieval call and its result a typed place in the interaction record. If they are populated the way the names suggest, a per-turn record of what was retrieved would sit next to the rest of the interaction, which is what offline recall checks and groundedness review would want.

What it does not establish

The notes list no fields for either type. They don’t say which retrieval tools, backends or corpora emit these steps, or whether the steps are populated automatically. There is no example payload, and nothing about ranking, relevance scores, citations or grounding metadata. “SDKs” is not broken down by language. So “the result step is a per-turn retrieval log” is an inference from two type names, not documented behavior. Upgrading gets you the types. It does not show that the retrieval your pipeline already runs will appear as these steps.

Why this matters for evaluation

A trace type is not an evaluation. Even if RetrievalResultStep turns out to carry everything you want, a recall number still depends on things no schema supplies:

  • a labeled set of relevant items per query, from your own data
  • a fixed corpus snapshot, so a re-index between runs doesn’t pass for a regression
  • a baseline from your current retriever’s own logs, so the new trace is compared rather than trusted
  • if the result step carries only identifiers, a join back to your store to see the retrieved text

Without field definitions, nobody can say from the notes whether a result step holds identifiers, passages or something else, which decides how much of that list it can serve.

A conditional path

If you’re on 2.23.0 and retrieval traceability is on your roadmap, 2.24.0 is a reasonable candidate upgrade. Before building metrics or dashboards on the new steps, I would check:

  1. Read the generated RetrievalCallStep and RetrievalResultStep definitions in the installed package. Note which fields exist and which are optional.
  2. Capture one real interaction from your own setup and see whether either step appears at all.
  3. For that same query, compare what the result step contains with what your retriever returned in its own logging. Differences in count, order or identifiers are the first thing to explain.
  4. Record the SDK version with every eval run, so a later schema change shows up in the results instead of silently shifting a metric.
  5. Keep your existing retrieval logging in place until steps 1 to 3 hold up.

One boundary worth keeping clear: the same release also fixes the automatic function calling budget (“Do not run functions once the automatic function calling budget is spent”). That is about stopping execution inside tool loops, not about what retrieval data you can observe, and it deserves its own thread. The other items (credential APIs, environments files upload and download, README model updates) aren’t retrieval features either.

Open question

For anyone who has already read the generated types or captured an interaction on 2.24.0: does RetrievalResultStep carry retrieved content or only references, and does it appear for your retrieval setup without extra configuration? That answer decides whether these steps can be an eval source or stay a trace hint.

One addition from the monitoring side, since the checklist above is aimed at eval harnesses: the same gaps matter if these steps end up on a live dashboard or alert.

The 2.24.0 notes don’t say which retrieval tools emit RetrievalCallStep or RetrievalResultStep, or whether the steps are populated automatically. My inference from that: a missing step in production traffic is an ambiguous signal. Retrieval may not have run, it may have run through a path that doesn’t emit the step, or the interaction may have gone through a client still on 2.23.0, which doesn’t have these types. Those need different responses, and a step count alone can’t tell them apart.

That changes one item in the list. Step 5 keeps existing retrieval logging in place until steps 1 to 3 hold up. For monitoring, I’d keep it as the primary signal after that too:

  • Keep the retriever’s own call log as the answer to “did retrieval happen”, even after a sample interaction checks out. Step 2 captures one interaction, which shows the step can appear for that path, not that every path emits it.
  • If you chart step presence, chart it as a mismatch rate against that log, joined on a request ID you control, rather than as a raw count. Don’t page on it.
  • Step 4 tags eval runs with the SDK version. In live traffic during a staged move from 2.23.0, the same tag is what separates rollout mix from retrieval behavior, so segment any step-derived metric by it.
  • Stop condition: if the mismatch rate isn’t explained by version mix or a known non-emitting path, don’t turn step-derived numbers into an SLO or an eval source until it is.

Whether these steps can be trusted as an operational signal is a separate question from whether they carry the fields an eval needs, and the release notes answer neither.