Introduction
@ant-design-x-vue/x-sdk provides the 2.10 conversation data flow, and the main package ant-design-x-vue re-exports the same set of APIs.
useXConversationsmanages the conversation listuseXChatmanages the messages, status, and retries of a single conversationXRequestsends requests, supporting manual mode, middleware, and SSEOpenAIChatProvider,DeepSeekChatProvider,DefaultChatProviderunify model responses into messages- Multiple conversations each have their own messages, separated by conversation key
bash
pnpm add ant-design-x-vue@2.10.0The main package includes the same version of @ant-design-x-vue/x-sdk. When installing only the SDK:
bash
pnpm add @ant-design-x-vue/x-sdk@2.10.0ts
import {
createOpenAIChatProvider,
useXChat,
useXConversations,
XRequest,
XStream,
} from 'ant-design-x-vue';Pages:
1.x useXAgent is still in the main package, only serving old examples. Field descriptions can be found in SDK Data Flow.