# CostBreakdown

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/cost_tracking/CostBreakdown)

Additive token and estimated-cost accounting for one or more requests.

## Signature

```python
CostBreakdown()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    version: int,
    request_count: int,
    priced_request_count: int,
    input_tokens: int,
    output_tokens: int,
    cache_creation_tokens: int,
    cache_read_tokens: int,
    reasoning_tokens: int,
    input_tokens_complete: bool,
    output_tokens_complete: bool,
    cache_creation_tokens_complete: bool,
    cache_read_tokens_complete: bool,
    reasoning_tokens_complete: bool,
    input_cost_usd: float,
    output_cost_usd: float,
    total_cost_usd: float,
    cache_creation_cost_usd: float,
    cache_read_cost_usd: float,
    reasoning_cost_usd: float,
    input_cost_complete: bool,
    output_cost_complete: bool,
    cache_creation_cost_complete: bool,
    cache_read_cost_complete: bool,
    reasoning_cost_complete: bool,
    historical_complete: bool,
)
```

| Name | Type |
|------|------|
| `version` | `int` |
| `request_count` | `int` |
| `priced_request_count` | `int` |
| `input_tokens` | `int` |
| `output_tokens` | `int` |
| `cache_creation_tokens` | `int` |
| `cache_read_tokens` | `int` |
| `reasoning_tokens` | `int` |
| `input_tokens_complete` | `bool` |
| `output_tokens_complete` | `bool` |
| `cache_creation_tokens_complete` | `bool` |
| `cache_read_tokens_complete` | `bool` |
| `reasoning_tokens_complete` | `bool` |
| `input_cost_usd` | `float` |
| `output_cost_usd` | `float` |
| `total_cost_usd` | `float` |
| `cache_creation_cost_usd` | `float` |
| `cache_read_cost_usd` | `float` |
| `reasoning_cost_usd` | `float` |
| `input_cost_complete` | `bool` |
| `output_cost_complete` | `bool` |
| `cache_creation_cost_complete` | `bool` |
| `cache_read_cost_complete` | `bool` |
| `reasoning_cost_complete` | `bool` |
| `historical_complete` | `bool` |


## Properties

- `version`
- `request_count`
- `priced_request_count`
- `input_tokens`
- `output_tokens`
- `cache_creation_tokens`
- `cache_read_tokens`
- `reasoning_tokens`
- `input_tokens_complete`
- `output_tokens_complete`
- `cache_creation_tokens_complete`
- `cache_read_tokens_complete`
- `reasoning_tokens_complete`
- `input_cost_usd`
- `output_cost_usd`
- `total_cost_usd`
- `cache_creation_cost_usd`
- `cache_read_cost_usd`
- `reasoning_cost_usd`
- `input_cost_complete`
- `output_cost_complete`
- `cache_creation_cost_complete`
- `cache_read_cost_complete`
- `reasoning_cost_complete`
- `historical_complete`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/cost_tracking.py#L128)