# parse_cache_activity

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/cold_cache/parse_cache_activity)

Validate a checkpointed cache activity record.

## Signature

```python
parse_cache_activity(
    value: object,
) -> CacheActivity | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `value` | `object` | Yes | Untrusted checkpoint value. |

## Returns

`CacheActivity | None`

A usable request record, or `None` for missing or malformed data.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/cold_cache.py#L43)