# get_user_agent

> **Function** in `langchain_azure_ai`

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

Return the combined User-Agent string.

Format: ``"<prefix1> <prefix2> ... langchain-azure-ai/<ver>"`` when
prefixes have been registered, otherwise just
``"langchain-azure-ai/<ver>"``.

Returns an empty string when telemetry is disabled via
:envvar:`LANGCHAIN_AZURE_AI_USER_AGENT_DISABLED`.

## Signature

```python
get_user_agent() -> str
```

---

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