# CostBreakdownScreen

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/modals/cost_breakdown/CostBreakdownScreen)

Modal showing the copyable entire-thread token and cost breakdown.

## Signature

```python
CostBreakdownScreen(
    self,
    breakdown: str,
    provider: Callable[[], str],
)
```

## Extends

- `ModalScreen[None]`

## Constructors

```python
__init__(
    self,
    breakdown: str,
    provider: Callable[[], str],
) -> None
```

| Name | Type |
|------|------|
| `breakdown` | `str` |
| `provider` | `Callable[[], str]` |


## Properties

- `can_focus`
- `BINDINGS`
- `CSS`

## Methods

- [`compose()`](https://reference.langchain.com/python/deepagents-code/tui/modals/cost_breakdown/CostBreakdownScreen/compose)
- [`on_mount()`](https://reference.langchain.com/python/deepagents-code/tui/modals/cost_breakdown/CostBreakdownScreen/on_mount)
- [`action_copy()`](https://reference.langchain.com/python/deepagents-code/tui/modals/cost_breakdown/CostBreakdownScreen/action_copy)
- [`action_close()`](https://reference.langchain.com/python/deepagents-code/tui/modals/cost_breakdown/CostBreakdownScreen/action_close)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/caaa7e7c12d214afa5cf0a1afed8eb6232aa6f7b/libs/code/deepagents_code/tui/modals/cost_breakdown.py#L40)