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

# session.update

更新当前角色或已注册的源图像。省略的字段保持不变。只有下方列出的会话状态可修改；该事件不会更新音色、工具或提示词。`session.updated` 表示请求已被接受。对于视觉变更，还应监听 `session.update.done`。

## 事件字段

**event\_id** `string`

客户端为本事件生成的 ID。

**type** `string` *required*

事件类型。必须为 `session.update`。

**session** `object` *required*

需要更新的部分会话状态。

**session.mode** `string`

会话模式。支持的值为 `video_avatar`；只更换图像时请省略该字段。

**session.active\_avatar\_id** `string`

用于渲染和生成后续响应的角色。

**session.source\_image\_id** `string | null`

角色视频使用的已注册源图像。省略时，Vivix 会保留当前图像，或选择当前角色的默认图像。更新后的状态必须能够确定一张可用的源图像。

```json session.update theme={null}
{
  "event_id": "evt_session_update_001",
  "type": "session.update",
  "session": {
    "active_avatar_id": "host_a",
    "source_image_id": "side"
  }
}
```


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