reserve • AI Agent SDK

reserve: Atomically claim “key“; “False“ if seen-or-in-flight.

reserve

Method

</div>

This is a method of the IdempotencyStoreProtocol class in the protocols module.

Atomically claim `key; False` if seen-or-in-flight.

Signature

python
def reserve(key: str) -> bool

Parameters

ParamField str

No description available.

Returns

ResponseField bool

The result of the operation.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 2151