# populate_thread_initial_prompts

> **Function** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/sessions/populate_thread_initial_prompts)

Populate `initial_prompt` for thread rows in the background.

## Signature

```python
populate_thread_initial_prompts(
    threads: list[ThreadInfo],
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `threads` | `list[ThreadInfo]` | Yes | Thread rows to enrich in place. |

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/bb27e62ebe44dd6e8104a504b1718ce87acc7ffa/libs/cli/deepagents_cli/sessions.py#L653)