# is_hosted_environment

> **Function** in `langchain_azure_ai`

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

Return whether the current process is running inside Foundry hosting.

## Signature

```python
is_hosted_environment() -> bool
```

---

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