# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/zh-CN/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/lang/zh-CN/).

## [0.0.3] - 2026-04-07

### Removed

- **createConversation**：移除 `IClientService` 接口中的 `createConversation` 方法，对话接口首次调用时会自动创建 `conversation_id`，无需提前创建

## [0.0.2] - 2026-03-26

### Added

#### 核心功能

- **SSE 流式对话**：支持通过 `agentSpaceRun` 方法进行 SSE 流式对话
- **文件上传**：支持通过 `uploadFile` 方法上传文件到服务器
- **用户偏好设置**：支持通过 `getUserPreferences`、`saveUserPreferences` 方法读写用户偏好
- **AI 能力集成**：集成通用问答、文档问答、深度研究、图像问答、PPT生成能力
- **历史对话管理**：支持对话列表查询、消息拉取、标题更新、删除等完整历史对话管理
- **语音转文本**：支持通过 `speechToText` 方法进行语音转文本处理

#### SDK 集成

- UMD 格式构建，支持通过 `<script>` 标签引入
- 全局变量 `AIAssistantAgent` 挂载到 `window` 对象

#### 接口定义

- `IClientService` 接口：定义客户端服务需要实现的所有方法
- `IFileUploadRes` 接口：文件上传响应类型
- `IAbortRequestParams` 接口：取消请求参数类型
- `IUserPreferencesData` 接口：用户偏好数据类型
- `ISessionHistoryDataReq` 接口：历史对话消息拉取参数类型
- `IHistoryChatItem` 接口：历史对话消息条目类型
- `ISessionHistoryFilesRes` 接口：对话文件恢复拉取接口返回类型
- `IUploadedFileInfo` 接口：已上传文件详情类型
- `IConversationListReq` 接口：历史会话列表请求参数类型
- `IConversationItem` 接口：会话列表元素类型
- `IConversationStatus` 接口：会话状态条目类型
