> ## 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.

# ChatAssistantMessage - Python SDK

> ChatAssistantMessage method reference

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

Assistant message for requests and responses

## Fields

| Field               | Type                                                                                                         | Required             | Description                                    | Example                                                                                                                                                                           |
| ------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------- | ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `audio`             | [Optional\[components.ChatAudioOutput\]](../components/chataudiooutput.md)                                   | :heavy\_minus\_sign: | Audio output data or reference                 | `{"data": "UklGRnoGAABXQVZFZm10IBAAAAABAAEAQB8AAEAfAAABAAgAZGF0YQoGAACBhYqFbF1f","expires_at": 1677652400,"id": "audio_abc123","transcript": "Hello! How can I help you today?"}` |
| `content`           | [OptionalNullable\[components.ChatAssistantMessageContent\]](../components/chatassistantmessagecontent.md)   | :heavy\_minus\_sign: | Assistant message content                      |                                                                                                                                                                                   |
| `images`            | List\[[components.ChatAssistantImages](/client-sdks/python/api-reference/components/chatassistantimages)]    | :heavy\_minus\_sign: | Generated images from image generation models  | \[<br />`{"image_url": {"url": "data:image/png;base64,iVBORw0KGgo..."}`<br />}<br />]                                                                                             |
| `name`              | *Optional\[str]*                                                                                             | :heavy\_minus\_sign: | Optional name for the assistant                |                                                                                                                                                                                   |
| `reasoning`         | *OptionalNullable\[str]*                                                                                     | :heavy\_minus\_sign: | Reasoning output                               |                                                                                                                                                                                   |
| `reasoning_details` | List\[[components.ReasoningDetailUnion](/client-sdks/python/api-reference/components/reasoningdetailunion)]  | :heavy\_minus\_sign: | Reasoning details for extended thinking models | \[<br />`{"thinking": "Let me work through this step by step...","type": "thinking"}`<br />]                                                                                      |
| `refusal`           | *OptionalNullable\[str]*                                                                                     | :heavy\_minus\_sign: | Refusal message if content was refused         |                                                                                                                                                                                   |
| `role`              | [components.ChatAssistantMessageRole](/client-sdks/python/api-reference/components/chatassistantmessagerole) | :heavy\_check\_mark: | N/A                                            |                                                                                                                                                                                   |
| `tool_calls`        | List\[[components.ChatToolCall](/client-sdks/python/api-reference/components/chattoolcall)]                  | :heavy\_minus\_sign: | Tool calls made by the assistant               |                                                                                                                                                                                   |
