# get_msg_title_repr

> **Function** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/messages/base/get_msg_title_repr)

Get a title representation for a message.

## Signature

```python
get_msg_title_repr(
    title: str,
    *,
    bold: bool = False,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `title` | `str` | Yes | The title. |
| `bold` | `bool` | No | Whether to bold the title. (default: `False`) |

## Returns

`str`

The title representation.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/fb6ab993a73180538f6cca876b3c85d46c08845f/libs/core/langchain_core/messages/base.py#L501)