# format_cost_breakdown_table

> **Function** in `deepagents_code`

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

Build the copyable entire-thread estimated token/cost table.

## Signature

```python
format_cost_breakdown_table(
    total_usd: float,
    breakdown: Mapping[str, object] | None,
) -> str
```

## Returns

`str`

A Markdown table, or an empty string when historical detail is missing.

---

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