# reset_for_testing

> **Function** in `langchain_azure_ai`

📖 [View in docs](https://reference.langchain.com/python/langchain-azure-ai/_user_agent/reset_for_testing)

Clear the prefix registry and detection cache.

Tests that toggle env vars or simulate hosting detection should call
this to keep state isolated.

## Signature

```python
reset_for_testing() -> None
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain-azure/blob/7a6a664d617264df8dcb12fcfb1bacc09f21d504/libs/azure-ai/langchain_azure_ai/_user_agent.py#L197)