# user_agent

> **Function** in `langchain_elasticsearch`

📖 [View in docs](https://reference.langchain.com/python/langchain-elasticsearch/_utilities/user_agent)

Generate a User-Agent string with the langchain-elasticsearch package version.

## Signature

```python
user_agent(
    prefix: str,
) -> str
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain-elastic/blob/e78a327f38e09abd10128ed28c8774e9a8f9fec0/libs/elasticsearch/langchain_elasticsearch/_utilities.py#L25)