> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Acommit Memory Batch • AI Agent SDK

> acommit_memory_batch: Async variant preferring ``store_*_async`` when available.

# acommit\_memory\_batch

AsyncMethod

> This is a method of the [**Memory**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/Memory.md) class in the [**memory**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/memory.md) 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 theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def acommit_memory_batch(writes: List[tuple]) -> None
```

## Parameters

**writes** `List[tuple]` *required*

No description available.

## Uses

* `async_method`
* `inspect.isawaitable`
* `asyncio.to_thread`
* `store`

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/memory/memory.py#L453)
>
> `praisonaiagents/memory/memory.py` at line 453

***

## Related Documentation

> [card] [Memory Concept](https://praison.ai/docs/docs/concepts/memory)

> [card] [Memory Overview](https://praison.ai/docs/docs/memory/overview)

> [card] [Memory Configuration](https://praison.ai/docs/docs/configuration/memory-config)

> [card] [Session Resume](https://praison.ai/docs/docs/memory/session-resume)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.