append • AI Agent SDK

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

append

Method

</div>

This is a method of the RunJournal class in the 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
def append(ev: JournalEvent) -> None

Parameters

ParamField JournalEvent

No description available.

Uses

  • ValueError
  • execute

Source

View on GitHub

praisonaiagents/runtime/journal.py at line 327