@@ -6,13 +6,29 @@ OnceOnly is a high-performance Python SDK that ensures **exactly-once execution*
66It prevents duplicate actions (payments, emails, tool calls) in unstable environments like
77AI agents, webhooks, retries, or background workers.
88
9+
910Website: https://onceonly.tech/ai/
1011Documentation: https://onceonly.tech/docs/
1112
1213[ ![ PyPI version] ( https://img.shields.io/pypi/v/onceonly-sdk.svg )] ( https://pypi.org/project/onceonly-sdk/ )
1314[ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-yellow.svg )] ( https://opensource.org/licenses/MIT )
1415---
1516
17+ ## Why duplicates happen
18+
19+ Duplicate actions are common in modern systems because:
20+ - AI agents retry or re-plan tool calls
21+ - Webhooks are delivered more than once
22+ - Workers crash after side-effects
23+ - Distributed systems replay events
24+
25+ Without an idempotency layer, the same action may run multiple times.
26+
27+ OnceOnly is designed to guard side-effects in non-deterministic AI agent loops,
28+ where the same tool call may be executed multiple times.
29+
30+ ---
31+
1632## Features
1733
1834- Sync + Async client (httpx-based)
@@ -22,6 +38,17 @@ Documentation: https://onceonly.tech/docs/
2238- Native AI API (long-running jobs, local side-effects)
2339- Optional AI / LangChain integrations
2440
41+ ---
42+
43+ ## FAQ
44+
45+ ** Does this prevent duplicate payments or emails?**
46+ Yes. OnceOnly guarantees exactly-once execution for side-effects.
47+
48+ ** Is this a retry library?**
49+ No. Retries still happen — OnceOnly ensures the action itself runs only once.
50+
51+
2552---
2653
2754## Installation
0 commit comments