> ## Documentation Index
> Fetch the complete documentation index at: https://docs.transluce.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Browser Integration

> Open collections, rubrics, and results in the Docent web UI

The SDK can open Docent web pages directly in your default browser — useful when
working in notebooks or scripts.

## Open an Agent Run

```python theme={null}
from docent import Docent

client = Docent()

url = client.open_agent_run("my-collection-id", "run-id-123")
# Opens browser to the agent run detail page
print(url)
```

### Parameters

**collection\_id** `str` *required*

ID of the collection containing the run.

**agent\_run\_id** `str` *required*

ID of the agent run to open.

### Returns

**url** `str`

The URL that was opened.

***

## Open a Rubric

Open a rubric page, optionally focused on a specific agent run or judge result.

```python theme={null}
# Rubric overview
client.open_rubric("my-collection-id", "rubric-123")

# Specific agent run within the rubric
client.open_rubric("my-collection-id", "rubric-123", agent_run_id="run-456")

# Specific judge result
client.open_rubric(
    "my-collection-id",
    "rubric-123",
    agent_run_id="run-456",
    judge_result_id="result-789",
)
```

### Parameters

**collection\_id** `str` *required*

ID of the collection.

**rubric\_id** `str` *required*

ID of the rubric.

**agent\_run\_id** `str | None`

Optional agent run to focus on within the rubric view.

**judge\_result\_id** `str | None`

Optional judge result to focus on. Requires `agent_run_id`.

***

## Start a Chat

Create an interactive chat session with agent runs or transcripts as context, and open it
in the browser.

```python theme={null}
run1 = client.get_agent_run("my-collection-id", "run-1")
run2 = client.get_agent_run("my-collection-id", "run-2")

session_id = client.start_chat([run1, run2])
# Opens browser to chat UI with both runs as context
```

### Parameters

**context** `LLMContext | list[AgentRun | Transcript]` *required*

Objects to include as chat context. Can be a list of `AgentRun` or `Transcript`
instances, or a pre-built `LLMContext`.

**model\_string** `str | None`

Optional model to use, in `"provider/model_name"` format.

**reasoning\_effort** `Literal['minimal', 'low', 'medium', 'high'] | None`

Optional reasoning effort hint passed to the LLM provider.

### Returns

**session\_id** `str`

The session ID of the created chat session.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.