Project story

Google ADK-Go: carrying code history between models

A conversation that worked in Gemini stopped at the next OpenAI request.

What broke

A Gemini turn can contain executable code and its output as distinct parts. When I replayed that history through ADK-Go’s OpenAI adapter, both request builders rejected those parts before sending the request.

How I tested it

I checked the serialized payload for Chat Completions and Responses. The tests assert that code and output appear in order beside ordinary text and images, including when the code is empty or the history contains reasoning. This verifies the conversion locally.

What the maintainer merged

On November 6, 2026, wolo-lab merged support for representing those two parts as fenced text in both adapters. The next model receives the earlier code and result as conversation context.