# ColdCacheWarningScreen

> **Class** in `deepagents_code`

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

Offer actions for a turn whose prompt cache may be cold.

Dismisses with the chosen `ColdCacheChoice`, or `None` on a
programmatic pop. Esc is mapped to `CANCEL` so the user is never
forced into a spend they did not explicitly choose. `None` and
`CANCEL` are both non-send outcomes. `HANDOFF` authorizes summarization
without sending the submitted turn.

## Signature

```python
ColdCacheWarningScreen(
    self,
    warning: ColdCacheWarning | None,
    *,
    handoff: bool = False,
    allow_send: bool = False,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `warning` | `ColdCacheWarning \| None` | Yes | Validated policy, pricing, and cause for this turn, or `None` when no reliable estimate exists. The body then shows a generic expiry notice. |
| `handoff` | `bool` | No | Offer a summarized thread as the default action. (default: `False`) |
| `allow_send` | `bool` | No | Include a send action in the handoff menu when a message has been submitted. (default: `False`) |

## Extends

- `ModalScreen[ColdCacheChoice | None]`

## Constructors

```python
__init__(
    self,
    warning: ColdCacheWarning | None,
    *,
    handoff: bool = False,
    allow_send: bool = False,
) -> None
```

| Name | Type |
|------|------|
| `warning` | `ColdCacheWarning \| None` |
| `handoff` | `bool` |
| `allow_send` | `bool` |


## Properties

- `can_focus`
- `BINDINGS`
- `CSS`

## Methods

- [`compose()`](https://reference.langchain.com/python/deepagents-code/tui/modals/cold_cache/ColdCacheWarningScreen/compose)
- [`on_mount()`](https://reference.langchain.com/python/deepagents-code/tui/modals/cold_cache/ColdCacheWarningScreen/on_mount)
- [`action_move_up()`](https://reference.langchain.com/python/deepagents-code/tui/modals/cold_cache/ColdCacheWarningScreen/action_move_up)
- [`action_move_down()`](https://reference.langchain.com/python/deepagents-code/tui/modals/cold_cache/ColdCacheWarningScreen/action_move_down)
- [`action_activate()`](https://reference.langchain.com/python/deepagents-code/tui/modals/cold_cache/ColdCacheWarningScreen/action_activate)
- [`action_cancel()`](https://reference.langchain.com/python/deepagents-code/tui/modals/cold_cache/ColdCacheWarningScreen/action_cancel)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/caaa7e7c12d214afa5cf0a1afed8eb6232aa6f7b/libs/code/deepagents_code/tui/modals/cold_cache.py#L113)