Gemini API runs multi-hop continuations server-side with polling, step aggregation and thinking levels
clmt · x · 2026-10-14
How Gemini API interactions work for long-running agent tasks
- Server-side continuation hops: the Gemini API manages multi-hop token continuations on Google infrastructure, so your client connection doesn't hang.
- Polling: your backend polls client.interactions.get(id=...) until the status leaves inprogress.
- Step aggregation: each hop appends a modeloutput step to interaction.steps; join the text across steps when done.
- Thinking budget control: thinkinglevel: low for quick queries, medium (default) for balanced tasks, high for hard math and system-level refactoring.
Related event: Gemini 4 Argon Server-side Background Execution Enables 260K-token Runs(2 posts)→
More from coding & agent
- Claude Code + ARIA via MCP: debugging agent evals from 4/12 to 9/12 — CoreWeaveDevs · 2026-12-02
- Claude Opus 5.5 + Unreal Engine 5.9 used to rapid-prototype a "Wedding Videographer Simulator" — gorkem · 2026-12-02
- Dev builds Mac app that turns selected text into AI-designed posters, open-sourcing it soon — vista8 · 2026-12-02
- Every trains a writing skill on 185 posts that beats standard Claude skills 85% of the time — every · 2026-12-02
- Astral's ty type checker hits 1.0, giving OpenAI a 24x speedup over prior tooling — Simon Willison · 2026-12-02
- Agent trace eval guide: matching full-trace LLM reads at ~80% lower token cost — CShorten30 · 2026-12-02