# get_user_agent

> **Function** in `langchain_google_vertexai`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-vertexai/_utils/get_user_agent)

Returns a custom user agent header.

## Signature

```python
get_user_agent(
    module: str | None = None,
) -> tuple[str, str]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `module` | `str \| None` | No | The module for a custom user agent header. (default: `None`) |

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/a3f016b2a6c4af535df275545f76fa7424aa39e5/libs/vertexai/langchain_google_vertexai/_utils.py#L90)