hold • AI Agent SDK

hold: Return an async context manager holding the lease for the block.

hold

Method

</div>

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

Return an async context manager holding the lease for the block.

Signature

python
def hold(key: str) -> 'AbstractAsyncContextManager[TurnLeaseToken]'

Parameters

ParamField str

No description available.

Returns

ResponseField 'AbstractAsyncContextManager[TurnLeaseToken]'

The result of the operation.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 7402