# is_transcript_selection

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/widgets/selection_action/is_transcript_selection)

Return whether a non-empty selection shows only transcript text.

Headers, toggles, hints, status lines, notices, and inline prompts in the
conversation are UI chrome, so a selection that touches one is rejected.
`UserMessage` and `DiffMessage` count as transcript as a whole, apart from
a diff header.

## Signature

```python
is_transcript_selection(
    widgets: Collection[Widget],
) -> bool
```

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/6a8d452d70f9bcb978e6bd44831dda093ecbe928/libs/code/deepagents_code/tui/widgets/selection_action.py#L35)