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
def events(run_id: str) -> List[JournalEvent]Parameters
ParamField
strNo description available.
Returns
ResponseField
List[JournalEvent]The result of the operation.
Uses
fetchallexecutejson.loadsJournalEvent
Used By
Source
View on GitHubpraisonaiagents/runtime/journal.py at line 351