UNPKG

@copilotkit/runtime

Version:

<img src="https://github.com/user-attachments/assets/0a6b64d9-e193-4940-a3f6-60334ac34084" alt="banner" style="border-radius: 12px; border: 2px solid #d6d4fa;" />

22 lines (20 loc) 519 B
import "reflect-metadata"; import { createSseEventResponse } from "../shared/sse-response.mjs"; //#region src/v2/runtime/handlers/sse/run.ts function handleSseRun({ runtime, request, agent, input, agentId, debug, logger }) { return createSseEventResponse({ request, debugEventBus: runtime.debugEventBus, agentId, debug, logger, observableFactory: () => runtime.runner.run({ threadId: input.threadId, agent, input }) }); } //#endregion export { handleSseRun }; //# sourceMappingURL=run.mjs.map