# read_approval_mode_from_store

> **Function** in `deepagents_code`

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

Read a live approval mode from the server-side LangGraph Store.

## Signature

```python
read_approval_mode_from_store(
    store: object,
    key: str | None,
) -> ApprovalMode | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `store` | `object` | Yes | `request.runtime.store` from the graph server. |
| `key` | `str \| None` | Yes | Store key produced by `approval_mode_key`. |

## Returns

`ApprovalMode | None`

A validated mode, or `None` when the record cannot be trusted. Callers

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e14e0adcbe78565ed3650e7f24b2a775d5437d25/libs/code/deepagents_code/approval_mode.py#L138)