Files
ai-agent-admin/web/apps/web-ele/src/components/ai-chat-panel/index.ts
T
2026-06-08 18:14:59 +08:00

61 lines
1.4 KiB
TypeScript

/**
* AI Chat Panel - 统一聊天面板组件
*
* 支持三种模式:
* - workflow: 工作流编辑器调试模式(使用草稿版本)
* - agent-debug: 智能体编辑器调试模式
* - agent-chat: 智能体正式对话模式(支持历史、反馈)
*
* @example
* ```vue
* <!-- 工作流编辑器模式 -->
* <AiChatPanel
* mode="workflow"
* :workflow-id="workflowId"
* :nodes="nodes"
* @node-start="handleNodeStart"
* @node-complete="handleNodeComplete"
* />
*
* <!-- Agent 编辑器调试模式 -->
* <AiChatPanel
* mode="agent-debug"
* :agent-id="agentId"
* :agent="agent"
* :disabled="agent?.status !== 'published'"
* />
*
* <!-- Agent 正式对话模式 -->
* <AiChatPanel
* mode="agent-chat"
* :agent-id="agentId"
* :agent="agent"
* :conversation-id="currentConversationId"
* @conversation-created="handleConversationCreated"
* />
* ```
*/
export { default as AiChatPanel } from './AiChatPanel.vue';
export { useChatApi, useEventHandler } from './composables';
export { default as ConversationList } from './ConversationList.vue';
export type {
AgentInfo,
AiChatPanelEmits,
AiChatPanelProps,
ChatApiAdapter,
ChatMessage,
ChatPanelMode,
ChatPanelState,
DesignPreviewData,
DesignPreviewType,
LoopIterationEvent,
NodeEvent,
ReasoningStep,
StreamEvent,
WorkflowNode,
WorkflowVariable,
} from './types';