Files
timi-tdesign-mobile/src/components/ai/index.ts
T
2026-09-20 12:03:03 +08:00

32 lines
1.0 KiB
TypeScript

import { WebToolkit } from "timi-web";
import AiChatComposerView from "./AiChatComposer.vue";
import AiChatMessageListView from "./AiChatMessageList.vue";
import AiChatPanelView from "./AiChatPanel.vue";
import AiChatThinkingView from "./AiChatThinking.vue";
export const AiChatComposer = WebToolkit.withInstall(AiChatComposerView);
export const AiChatMessageList = WebToolkit.withInstall(AiChatMessageListView);
export const AiChatPanel = WebToolkit.withInstall(AiChatPanelView);
export const AiChatThinking = WebToolkit.withInstall(AiChatThinkingView);
export default AiChatPanel;
export { useAiChat, AiChatHttpError, AiChatStreamError, ensureChatResponse, parseSseData, readSseStream } from "./useAiChat";
export { parseAssistantResponse } from "./useAiChat";
export type {
AiChatCitationFormatter,
AiChatErrorMessages,
AiChatEventAction,
AiChatMessage,
AiChatMessageStatusFormatter,
AiChatRequestContext,
AiChatRoleNameFormatter,
AiChatRoleNames,
AiChatStreamEvent,
AiCitation,
AiMessageRole,
AiThinking,
UseAiChatOptions
} from "./types";