# get_cached_langsmith_thread_url

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/config/get_cached_langsmith_thread_url)

Build a LangSmith thread URL only when its project URL is cached.

This non-blocking variant lets transient UI surfaces render a previously
resolved link immediately without repeating or scheduling another lookup.

## Signature

```python
get_cached_langsmith_thread_url(
    thread_id: str,
) -> str | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `thread_id` | `str` | Yes | Thread identifier to build the URL for. |

## Returns

`str | None`

Full thread URL string when the active project's URL is already cached,

---

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