Acommit Memory Batch • AI Agent SDK

acommit_memory_batch: Async variant preferring “store_*_async“ when available.

acommit_memory_batch

Async

Method

</div>

This is a method of the Memory class in the memory module.

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

python
async def acommit_memory_batch(writes: List[tuple]) -> None

Parameters

ParamField List[tuple]

No description available.

Uses

  • async_method
  • inspect.isawaitable
  • asyncio.to_thread
  • store

Source

View on GitHub

praisonaiagents/memory/memory.py at line 453


Related Documentation