# user_message

Canonical URL: https://developers.iagenify.com/zh/sdk/agent/events/user-message/
Language: zh

`{ type: "user_message", id, text, images }`

队列中的一条消息刚刚进入对话。它出现在读取它的那一轮之前——正是在对话记录中显示这条消息的位置。

Status: from queue() · before the next turn · SDK 0.5.4+

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `id` | string |  | `queue()` 返回的 ID。 |
| `text` | string |  | 消息内容。 |
| `images` | number |  | 随附的图片数量。 |

## 在它前后拆分回答 {#transcript}

代理在此事件之前写下的内容回答的是上一条消息；之后的内容回答的是这一条。界面会结束当前回复、显示用户的消息，并在下方开启新的回复。

- [queue()](/zh/sdk/ref/local-agent/queue): 它从哪里来。
- [done](/zh/sdk/agent/events/done): 未读消息返回到哪里。
