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

# Chat

> Org-wide Modus assistant (client.modus).

### ModusResource

```python
class ModusResource(http: HttpClient, agent_http: HttpClient, config: ModusConfig)
```

Bases: `object`

Chat with Modus — your org-wide assistant with full context and tools.

client.modus.chat(”…”, model=”claude-sonnet-5”) client.modus.conversations.list(kind=”modus”) client.modus.get\_context(“What tables describe churn?”)

#### chat()

```python
chat(message: str, *, model: str, thread_id: str | None = None) → SkillChatResponseDto
```

Send a message to Modus and get the complete reply.

* Parameters:

  * **message** – The message to send.

  * **model** – Model id, e.g. `"claude-sonnet-5"`.

  * **thread\_id** – Continue an existing conversation; omit to start new.

#### chat\_stream()

```python
chat_stream(message: str, *, model: str, thread_id: str | None = None) → ChatStream
```

Stream a Modus reply token by token.

#### get\_context()

```python
get_context(message: str, *, limit: int | None = None) → ComposeSkillContextResponseDto
```

Return composed full-environment context for an intent, without running chat.

### AsyncModusResource

```python
class AsyncModusResource(http: AsyncHttpClient, agent_http: AsyncHttpClient, config: ModusConfig)
```

Bases: `object`

Async native Modus chat.

#### chat()

```python
async chat(message: str, *, model: str, thread_id: str | None = None) → SkillChatResponseDto
```

Send a message to Modus and get the complete reply. See the sync `chat` for argument details.

#### chat\_stream()

```python
chat_stream(message: str, *, model: str, thread_id: str | None = None) → AsyncChatStream
```

Stream a Modus reply token by token. See the sync `chat_stream` for argument details.

#### get\_context()

```python
async get_context(message: str, *, limit: int | None = None) → ComposeSkillContextResponseDto
```

Return composed full-environment context for an intent. See the sync `get_context` for argument details.
