Open source Python Launching soon

Make agent actions happen exactly once.

Your agent clicks save. The request times out. Did it happen? Oncer checks before it retries, so nothing is done twice or lost.

Without Oncer

create_booking(guest="ana@acme.com"…)
  1. IN_FLIGHTcalling booking system…
  2. TIMEOUTno response after 30s
  3. RETRYagent retries blindly
  4. IN_FLIGHTcalling it again…
  5. DUPLICATE2 bookings for ana@acme.com

With Oncer

create_booking(guest="ana@acme.com"…)
  1. IN_FLIGHTcalling booking system…
  2. TIMEOUTno response after 30s
  3. PROBINGchecking booking system…
  4. FOUNDbooking exists (bk_48213)
  5. COMMITTEDexecuted once · no retry
import oncer

@oncer.action(
    type="booking.create",
    keys=lambda guest, date: {"guest": guest, "date": date},
    # timed out? Oncer checks before retrying
    probe=find_booking,
)
async def create_booking(guest: str, date: str) -> dict:
    return await bookings.create(guest=guest, date=date)