---
title: "InputMessageItem"
---

## Fields

| Field                                                                                            | Type                                                                                             | Required                                                                                         | Description                                                                                      |
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
| `content`                                                                                        | List[[components.InputMessageItemContentUnion](../components/inputmessageitemcontentunion.mdx)]   | :heavy_minus_sign:                                                                               | N/A                                                                                              |
| `id`                                                                                             | *Optional[str]*                                                                                  | :heavy_minus_sign:                                                                               | N/A                                                                                              |
| `role`                                                                                           | [components.InputMessageItemRoleUnion](../components/inputmessageitemroleunion.mdx)               | :heavy_check_mark:                                                                               | N/A                                                                                              |
| `type`                                                                                           | [Optional[components.InputMessageItemTypeMessage]](../components/inputmessageitemtypemessage.mdx) | :heavy_minus_sign:                                                                               | N/A                                                                                              |