google.internal.lower_journal

ai.Journal -> generateContent `contents`. Only promptable events lower; ai.RunStarted, ai.ToolRequested, ai.Usage, and ai.FinalProduced are journal-only. Consecutive tool results merge into ONE user content of functionResponse parts, matching how Gemini expects results for a multi-call turn.

Reference version

Signature

function google.internal.lower_journal(j: ai.Journal) -> google.internal.GmContent[] throws never

ai.Journal -> generateContent contents. Only promptable events lower; ai.RunStarted, ai.ToolRequested, ai.Usage, and ai.FinalProduced are journal-only. Consecutive tool results merge into ONE user content of functionResponse parts, matching how Gemini expects results for a multi-call turn.

Source:<builtin>/google/ns_internal/gemini.bamlbytes 20738–24286