# 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/8e006aa3ea738f609bcf19c54249414cecf48daf/libs/vertexai/langchain_google_vertexai/_utils.py#L90)