# ModelLabel

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/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.

When a reasoning effort is set, its label is appended to the model and
participates in the same ladder: the effort suffix is preserved (with the
model left-truncated to make room) and is only dropped once even the
left-truncated model plus effort cannot fit.

## Signature

```python
ModelLabel()
```

## Extends

- `Widget`

## Properties

- `provider`
- `model`
- `effort`

## Methods

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

---

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