# prompt_title

> **Function** in `deepagents_code`

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

Return a prompt's first non-empty line for a one-row summary.

## Signature

```python
prompt_title(
    prompt: str,
) -> str
```

---

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