|
|
|
|
|
by abrichr
7 days ago
|
|
For retries, binding a single-use nonce to the payload hash and burning it atomically on execution handles the timeout-and-resubmit case pretty well. The trickier one I've run into is an agent splitting a large request into a few smaller ones that each stay under the per-call limit, so you end up needing a rolling daily cap server-side too. |
|
There are open issues describing this in LangGraph (#9622), CrewAI (#8932) and the Vercel AI SDK (#25342) right now. The CrewAI one can run a tool up to three times for one action.
So even with an idempotent payment API I'd want the agent's record to keep three states for every write: not sent, confirmed, and sent-but-unknown. The third one is the one that gets flattened into "success" or "error". (I'm building a small self-hosted tool that records this, so I'm biased, but the three states are worth keeping whatever you use.)