> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vivix.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# conversation.item.created

报告由客户端创建或在生成响应时创建的新对话项。

## 事件字段

**event\_id** `string` *required*

此服务端事件的唯一 ID。

**type** `string` *required*

事件类型。必须为 `conversation.item.created`。

**previous\_item\_id** `string | null` *required*

排在此项之前的对话项。如果此项没有前一项，则返回 `null`。

**item** `object` *required*

已创建的对话项。其结构与 `conversation.item.create` 中记录的项结构相同。

**item.id** `string` *required*

由服务端分配或客户端提供的对话项 ID。

**item.type** `string` *required*

项类型，例如 `message`、`function_call` 或 `function_call_output`。

**role、content、`call_id`、name、arguments、output：条件字段**

具体字段取决于项的 `type`。请参阅 `conversation.item.create` 中的 `item` 数据结构。

**item.status** `string`

可选的项状态，仅在服务端返回时存在。

```json conversation.item.created theme={null}
{
  "event_id": "evt_item_created_001",
  "type": "conversation.item.created",
  "previous_item_id": null,
  "item": {
    "id": "item_001",
    "type": "message",
    "status": "completed",
    "role": "user",
    "content": [
      {
        "type": "input_text",
        "text": "Show me the second product."
      }
    ]
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.