Replay Index • AI Agent SDK

replay_index: Return a “(seq, kind): payload“ lookup for memoised replay.

replay_index

Method

</div>

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

Return a `&#123;(seq, kind): payload&#125;` lookup for memoised replay.

The loop consults this during replay: a hit returns the recorded result instantly (no re-execution); a miss means real work restarts there.

Signature

python
def replay_index(run_id: str) -> Dict[tuple, Dict[str, Any]]

Parameters

ParamField str

No description available.

Returns

ResponseField Dict[tuple, Dict[str, Any]]

The result of the operation.

Uses

  • events

Source

View on GitHub

praisonaiagents/runtime/journal.py at line 380


Related Documentation