events • AI Agent SDK

events: Return all journal events for “run_id“ ordered by “(seq, kind)“.

events

Method

</div>

This is a method of the RunJournal class in the journal module.

Return all journal events for `run_id ordered by (seq, kind)`.

Ordering by `(seq, rowid) preserves append order within a step so a tool_call always precedes its tool_result`.

Signature

python
def events(run_id: str) -> List[JournalEvent]

Parameters

ParamField str

No description available.

Returns

ResponseField List[JournalEvent]

The result of the operation.

Uses

  • fetchall
  • execute
  • json.loads
  • JournalEvent

Used By

Source

View on GitHub

praisonaiagents/runtime/journal.py at line 351