mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 11:55:47 -06:00
refactor(auto-reply): hide delivery helper types
This commit is contained in:
@@ -5,7 +5,7 @@ import type { ReplyPayload } from "../types.js";
|
||||
import type { BlockStreamingCoalescing } from "./block-streaming.js";
|
||||
|
||||
/** Coalesces many streaming reply fragments into fewer outbound payloads. */
|
||||
export type BlockReplyCoalescer = {
|
||||
type BlockReplyCoalescer = {
|
||||
enqueue: (payload: ReplyPayload) => void;
|
||||
flush: (options?: { force?: boolean }) => Promise<void>;
|
||||
hasBuffered: () => boolean;
|
||||
|
||||
@@ -23,7 +23,7 @@ export type BlockReplyPipeline = {
|
||||
};
|
||||
|
||||
/** Optional buffering strategy used before payloads enter block delivery. */
|
||||
export type BlockReplyBuffer = {
|
||||
type BlockReplyBuffer = {
|
||||
shouldBuffer: (payload: ReplyPayload) => boolean;
|
||||
onEnqueue?: (payload: ReplyPayload) => void;
|
||||
finalize?: (payload: ReplyPayload) => ReplyPayload;
|
||||
|
||||
@@ -82,7 +82,7 @@ export type BlockStreamingCoalescing = {
|
||||
flushOnEnqueue?: boolean;
|
||||
};
|
||||
|
||||
export type BlockStreamingChunking = {
|
||||
type BlockStreamingChunking = {
|
||||
minChars: number;
|
||||
maxChars: number;
|
||||
breakPreference: "paragraph" | "newline" | "sentence";
|
||||
|
||||
@@ -5,9 +5,9 @@ import { deriveSessionChatTypeFromKey } from "../../sessions/session-chat-type-s
|
||||
import type { DeliveryContext } from "../../utils/delivery-context.types.js";
|
||||
import { resolveSourceReplyDeliveryMode } from "./source-reply-delivery-mode.js";
|
||||
|
||||
export type CompletionChatType = ChatType | "unknown";
|
||||
type CompletionChatType = ChatType | "unknown";
|
||||
|
||||
export type CompletionDeliverySessionEntry = {
|
||||
type CompletionDeliverySessionEntry = {
|
||||
chatType?: string | null;
|
||||
origin?: { chatType?: string | null } | null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user