Acommit Memory Batch • AI Agent SDK
acommit_memory_batch: Async variant preferring “store_*_async“ when available.
acommit_memory_batch
Async
Method
</div>
Async variant preferring `store_*_async` when available.
Blocking `store_*` work is offloaded to a worker thread so the event loop is never blocked, and each write is gated by the same deadline / cancellation guard as the sync path so late or cancelled facts are not persisted after compaction resumes.
Signature
async def acommit_memory_batch(writes: List[tuple]) -> NoneParameters
ParamField
List[tuple]No description available.
Uses
async_methodinspect.isawaitableasyncio.to_threadstore
Source
View on GitHubpraisonaiagents/memory/memory.py at line 453