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
</div>
This function is defined in the last_run 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
def load_last_run_pointer() -> Optional[Dict[str, Any]]Returns
ResponseField
Optional[Dict[str, Any]]The result of the operation.
Uses
last_run_pointer_pathpath.existsjson.loadspath.read_text
Source
View on GitHubpraisonaiagents/trace/last_run.py at line 84