mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:30:43 +00:00
perf: lazy reply dispatch sdk runtime
This commit is contained in:
@@ -1,7 +1,25 @@
|
||||
export { resolveChunkMode } from "../auto-reply/chunk.js";
|
||||
export { finalizeInboundContext } from "../auto-reply/reply/inbound-context.js";
|
||||
export {
|
||||
dispatchReplyWithBufferedBlockDispatcher,
|
||||
dispatchReplyWithDispatcher,
|
||||
} from "../auto-reply/reply/provider-dispatcher.js";
|
||||
import type {
|
||||
DispatchReplyWithBufferedBlockDispatcher,
|
||||
DispatchReplyWithDispatcher,
|
||||
} from "../auto-reply/reply/provider-dispatcher.types.js";
|
||||
|
||||
export type {
|
||||
DispatchReplyWithBufferedBlockDispatcher,
|
||||
DispatchReplyWithDispatcher,
|
||||
} from "../auto-reply/reply/provider-dispatcher.types.js";
|
||||
export type { ReplyPayload } from "./reply-payload.js";
|
||||
|
||||
export const dispatchReplyWithBufferedBlockDispatcher: DispatchReplyWithBufferedBlockDispatcher =
|
||||
async (params) => {
|
||||
const { dispatchReplyWithBufferedBlockDispatcher: dispatch } =
|
||||
await import("../auto-reply/reply/provider-dispatcher.js");
|
||||
return await dispatch(params);
|
||||
};
|
||||
|
||||
export const dispatchReplyWithDispatcher: DispatchReplyWithDispatcher = async (params) => {
|
||||
const { dispatchReplyWithDispatcher: dispatch } =
|
||||
await import("../auto-reply/reply/provider-dispatcher.js");
|
||||
return await dispatch(params);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user