# ModelLabel

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/widgets/status/ModelLabel)

A label that displays a model name, right-aligned with smart truncation.

When the full `provider:model` text doesn't fit, the provider is dropped
first. If the bare model name still doesn't fit, it is left-truncated
with a leading ellipsis so the most distinctive tail stays visible.

## Signature

```python
ModelLabel()
```

## Extends

- `Widget`

## Properties

- `provider`
- `model`

## Methods

- [`get_content_width()`](https://reference.langchain.com/python/deepagents-code/widgets/status/ModelLabel/get_content_width)
- [`render()`](https://reference.langchain.com/python/deepagents-code/widgets/status/ModelLabel/render)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/a98f0dfa8d534d8a1885b524632400e52db22ac6/libs/code/deepagents_code/widgets/status.py#L45)