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

# Load Last Run Pointer • AI Agent SDK

> load_last_run_pointer: Load the last-run pointer, or ``None`` if none has been recorded.

# load\_last\_run\_pointer

Function

> This function is defined in the [**last\_run**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/last_run.md) module.

Load the last-run pointer, or `None` if none has been recorded.

Returns `None` for a missing or malformed pointer file rather than
raising, so callers can emit a typed "no completed run" message.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def load_last_run_pointer() -> Optional[Dict[str, Any]]
```

### Returns

**Returns** `Optional[Dict[str, Any]]`

The result of the operation.

## Uses

* `last_run_pointer_path`
* `path.exists`
* `json.loads`
* `path.read_text`

## Source

> **[View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/trace/last_run.py#L84)**
>
> `praisonaiagents/trace/last_run.py` at line 84


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.