# RewarmEstimate

> **Class** in `deepagents_code`

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

Estimated input cost for a cold prefix and its warm-cache delta.

Both figures are USD, non-negative, and finite; `incremental_cost_usd` is
the part of `cold_cost_usd` that a cache hit would have avoided, so it
never exceeds it.

Keyword-only for the same reason as `PromptCachePolicy`: these are adjacent
bare floats, and transposing them positionally yields copy that reads fine
("may cost up to ~$0.02 ... roughly ~$3.40 more than a warm cache hit")
while being arithmetically impossible.

## Signature

```python
RewarmEstimate(
    self,
    *,
    cold_cost_usd: float,
    incremental_cost_usd: float,
)
```

## Constructors

```python
__init__(
    self,
    *,
    cold_cost_usd: float,
    incremental_cost_usd: float,
) -> None
```

| Name | Type |
|------|------|
| `cold_cost_usd` | `float` |
| `incremental_cost_usd` | `float` |


## Properties

- `cold_cost_usd`
- `incremental_cost_usd`

---

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