UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

24 lines • 1.06 kB
//#region src/plugins/embedding-provider-runtime-types.d.ts /** One text chunk submitted through a provider-owned asynchronous embedding batch. */ type EmbeddingBatchChunk = { text: string; }; /** Host-controlled execution parameters for an asynchronous embedding batch. */ type EmbeddingBatchOptions = { agentId: string; chunks: EmbeddingBatchChunk[]; wait: boolean; concurrency: number; pollIntervalMs: number; timeoutMs: number; debug: (message: string, data?: Record<string, unknown>) => void; }; /** Provider-owned asynchronous batching capability, independent of host runtime metadata. */ type EmbeddingProviderBatchRuntime = { /** Returns one vector per chunk in input order, or null to use host fallback. */ batchEmbed: (options: EmbeddingBatchOptions) => Promise<number[][] | null>; /** Only true enables batching across dirty files; false or omission retains per-file batches. */ sourceWideBatchEmbed?: boolean; }; //#endregion export { EmbeddingBatchOptions as n, EmbeddingProviderBatchRuntime as r, EmbeddingBatchChunk as t };