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
def hold(key: str) -> 'AbstractAsyncContextManager[TurnLeaseToken]'Parameters
ParamField
strNo description available.
Returns
ResponseField
'AbstractAsyncContextManager[TurnLeaseToken]'The result of the operation.
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 7402