# PromptTokenDetails

> **Class** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/types/thread_trace/PromptTokenDetails)

`prompt_token_details` is the prompt-side token breakdown by category; per-category counts are under nested `raw`. Omitted unless included in `selects`.

## Signature

```python
PromptTokenDetails()
```

## Extends

- `BaseModel`

## Properties

- `raw`

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-python/blob/15dd2a789f976bbbafd803b26d0f25c08b5ed527/src/langsmith/types/thread_trace.py#L38)