> ## 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

<div className="flex items-center gap-2">
  <Badge color="blue">Async</Badge>
  <Badge color="purple">Method</Badge>
</div>

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

## Parameters

<ParamField query="writes" type="List[tuple]" required={true}>
  No description available.
</ParamField>

## Uses

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

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/memory/memory.py#L436">
  `praisonaiagents/memory/memory.py` at line 436
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Memory Concept" icon="brain" href="/docs/docs/concepts/memory" />

  <Card title="Memory Overview" icon="database" href="/docs/docs/memory/overview" />

  <Card title="Memory Configuration" icon="gear" href="/docs/docs/configuration/memory-config" />

  <Card title="Session Resume" icon="rotate-right" href="/docs/docs/memory/session-resume" />
</CardGroup>
