# debug_stand_in_policy

> **Function** in `deepagents_code`

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

Build the placeholder policy used by `DEEPAGENTS_CODE_DEBUG_COLD_CACHE`.

Keeps the modal reachable on providers with no documented cache policy.
Lives here rather than in the caller so the Anthropic window and minimum
stay tied to `_ANTHROPIC_MIDDLEWARE_TTL_SECONDS` and
`_ANTHROPIC_DEFAULT_MINIMUM_TOKENS` instead of being re-hardcoded, which
would silently drift the moment either constant is revised.

The provider name is deliberately Anthropic's: under the debug flag the
modal may therefore cite Anthropic retention while a different provider is
active. The figures are illustrative in that mode, not real estimates.

## Signature

```python
debug_stand_in_policy() -> PromptCachePolicy
```

## Returns

`PromptCachePolicy`

Stand-in policy shaped like Anthropic's.

---

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