/** * agui 子模块公共入口:下行适配器——ag-ui SSE 协议桥接(原 conversation 模块改名)。 * * 把 core 产出的 AgentStreamEvent 流桥接成 conversation-contract SSE 协议事件, * 供 Appwrite Function、linkque-cli/agentdev 等多场景复用。语义类型/端口契约经 core 导出。 * * 三层 API: * - {@link mapAgentEventToBaseEvents}:纯函数,单条 agent 事件 → ag-ui BaseEvent。 * - {@link streamToConversationEvents}:有状态编排,事件流 → SSE 事件流 * (ack/RUN_STARTED/消息三元组/RUN_FINISHED/transport-error)。 * - {@link runConversation}:一条龙,ConversationRunRequest → SSE 事件流。 */ export { mapAgentEventToBaseEvents, type IdGenerator } from './eventMapper.js'; export { streamToConversationEvents, type IConversationBridgeContext, type IConversationBridgeOptions, } from './conversationBridge.js'; export { runConversation, type IRunConversationOptions, } from './runConversation.js';