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

# append • AI Agent SDK

> append: Append ``ev`` to the journal (idempotent on ``run_id/seq/kind``).

# append

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

> This is a method of the [**RunJournal**](../classes/RunJournal) class in the [**journal**](../modules/journal) module.

Append `ev` to the journal (idempotent on `run_id/seq/kind`).

Re-appending the same `(run_id, seq, kind)` — which happens if a
replayed step is (harmlessly) re-journalled — updates the payload
rather than raising, keeping the journal the single source of truth.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def append(ev: JournalEvent) -> None
```

## Parameters

<ParamField query="ev" type="JournalEvent" required={true}>
  No description available.
</ParamField>

## Uses

* `ValueError`
* `execute`

## Source

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