> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-5b6e02fd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ChatMessages - Python SDK

> ChatMessages method reference

<Warning>
  The Python SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/python-sdk/issues).
</Warning>

Chat completion message with role-based discrimination

## Supported Types

### `components.ChatAssistantMessage`

```python lines theme={null}
value: components.ChatAssistantMessage = /* values here */
```

### `components.ChatDeveloperMessage`

```python lines theme={null}
value: components.ChatDeveloperMessage = /* values here */
```

### `components.ChatSystemMessage`

```python lines theme={null}
value: components.ChatSystemMessage = /* values here */
```

### `components.ChatToolMessage`

```python lines theme={null}
value: components.ChatToolMessage = /* values here */
```

### `components.ChatUserMessage`

```python lines theme={null}
value: components.ChatUserMessage = /* values here */
```
