Gemini managed agents background:true vs a Sume Format 202 receipt

Both return an id to poll instead of holding the connection. Compare the Gemini background flag with the Sume Format run receipt and its four URLs.

5 min readSume
All posts

Both are the same pattern: start long work, get an id back right away, and poll for the result. Google's July 7 post on the Gemini API's managed agents says that with background: true the call returns an id you can poll instead of keeping a connection open for a long task (read 2026-10-04). A Sume Format run does the equivalent by default: POST /v1/formats/{handle}/{slug}/runs answers 202 with a receipt.

If you already wrote a poller for one, most of it carries over to the other. The differences are in what the receipt hands you.

What does the Sume receipt contain?

Sume's Create a run page says the receipt carries the run id and four addresses, so you never build a URL by hand.

Receipt URLs on a Sume Format run, from the Create a run docs, read 2026-10-04.
FieldUse
status_urlPoll for status; the run is terminal when status is completed, failed, canceled or skipped
result_urlFetch the result once the run is terminal
events_urlRead the run's event history
cancel_urlCancel while the run is in flight

How do I poll without hammering it?

Follow the next_action hint on the status response. Sume's Runs and results page defines three values: poll_status means check again, retry_later means a transient gap, and none means stop. Back off between polls, and set a ceiling: a run is force-finalized as failed 90 minutes after creation, so a loop that outlives that is a bug in your loop.

Do I need to poll at all?

Not if you can receive a webhook. Register a public HTTPS webhook_url on the create call and Sume posts a format.run.terminal event when the run ends, signed so you can verify it. Keep the poller as a backstop for a missed delivery, and call the redeliver endpoint when you need a replay.

What does the Gemini post leave open?

It says a background call returns an id to poll; it does not, in the part read, list the terminal states, a cancel call or a hard ceiling. Check Google's reference for those before you reuse a Sume-shaped loop against it.

Sources

Related posts

More in Agents

All Agents posts

Written by Sume