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

# Replay Index • AI Agent SDK

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

# replay\_index

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

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 theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def replay_index(run_id: str) -> Dict[tuple, Dict[str, Any]]
```

## Parameters

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

### Returns

<ResponseField name="Returns" type="Dict[tuple, Dict[str, Any]]">
  The result of the operation.
</ResponseField>

## Uses

* `events`

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Replay Feature" icon="rotate-left" href="/docs/features/replay" />
</CardGroup>
