---
title: "ChatUserMessage"
---

User message


## Fields

| Field                                                                        | Type                                                                         | Required                                                                     | Description                                                                  | Example                                                                      |
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| `content`                                                                    | [components.ChatUserMessageContent](../components/chatusermessagecontent.mdx) | :heavy_check_mark:                                                           | User message content                                                         | What is the capital of France?                                               |
| `name`                                                                       | *Optional[str]*                                                              | :heavy_minus_sign:                                                           | Optional name for the user                                                   | User                                                                         |
| `role`                                                                       | [components.ChatUserMessageRole](../components/chatusermessagerole.mdx)       | :heavy_check_mark:                                                           | N/A                                                                          |                                                                              |