mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-27 07:41:24 +00:00
* fix(memory): harden embedding batch workflows Co-authored-by: 徐闻涵0668001344 <xu.wenhan1@xydigit.com> Co-authored-by: ben.li <li.yang6@xydigit.com> * test(memory): align batch redaction expectation * test(memory): tighten batch dependency types * refactor(google): clarify batch state control flow * test(google): make batch stage fallback lint-safe * build(plugin-sdk): refresh memory batch surface budget --------- Co-authored-by: Peter Steinberger <steipete@gmail.com> Co-authored-by: ben.li <li.yang6@xydigit.com>
82 lines
2.9 KiB
TypeScript
82 lines
2.9 KiB
TypeScript
// Real workspace contract for memory embedding providers and batch helpers.
|
|
|
|
export {
|
|
getMemoryEmbeddingProvider,
|
|
listRegisteredMemoryEmbeddingProviders,
|
|
listMemoryEmbeddingProviders,
|
|
listRegisteredMemoryEmbeddingProviderAdapters,
|
|
} from "./host/openclaw-runtime-memory.js";
|
|
export type {
|
|
MemoryEmbeddingBatchChunk,
|
|
MemoryEmbeddingBatchOptions,
|
|
MemoryEmbeddingProvider,
|
|
MemoryEmbeddingProviderAdapter,
|
|
MemoryEmbeddingProviderCallOptions,
|
|
MemoryEmbeddingProviderCreateOptions,
|
|
MemoryEmbeddingProviderCreateResult,
|
|
MemoryEmbeddingProviderRuntime,
|
|
} from "./host/openclaw-runtime-memory.js";
|
|
export { createLocalEmbeddingProvider, DEFAULT_LOCAL_MODEL } from "./host/embeddings.js";
|
|
export {
|
|
EmbeddingBatchUnavailableError,
|
|
extractBatchErrorMessage,
|
|
formatBatchErrorDetail,
|
|
formatUnavailableBatchError,
|
|
isEmbeddingBatchUnavailableError,
|
|
} from "./host/batch-error-utils.js";
|
|
export { postJsonWithRetry } from "./host/batch-http.js";
|
|
export { applyEmbeddingBatchOutputLine, readEmbeddingBatchJsonl } from "./host/batch-output.js";
|
|
export {
|
|
EMBEDDING_BATCH_ENDPOINT,
|
|
type EmbeddingBatchStatus,
|
|
type ProviderBatchOutputLine,
|
|
} from "./host/batch-provider-common.js";
|
|
export {
|
|
buildEmbeddingBatchGroupOptions,
|
|
runEmbeddingBatchGroups,
|
|
type EmbeddingBatchExecutionParams,
|
|
} from "./host/batch-runner.js";
|
|
export {
|
|
resolveBatchCompletionFromStatus,
|
|
resolveCompletedBatchResult,
|
|
throwIfBatchCompletionError,
|
|
throwIfBatchTerminalFailure,
|
|
type BatchCompletionResult,
|
|
} from "./host/batch-status.js";
|
|
export { uploadBatchJsonlFile } from "./host/batch-upload.js";
|
|
export {
|
|
buildBatchHeaders,
|
|
normalizeBatchBaseUrl,
|
|
type BatchHttpClientConfig,
|
|
} from "./host/batch-utils.js";
|
|
export { enforceEmbeddingMaxInputTokens } from "./host/embedding-chunk-limits.js";
|
|
export {
|
|
isMissingEmbeddingApiKeyError,
|
|
mapBatchEmbeddingsByIndex,
|
|
sanitizeEmbeddingCacheHeaders,
|
|
} from "./host/embedding-provider-adapter-utils.js";
|
|
export { sanitizeAndNormalizeEmbedding } from "./host/embedding-vectors.js";
|
|
export { debugEmbeddingsLog } from "./host/embeddings-debug.js";
|
|
export { normalizeEmbeddingModelWithPrefixes } from "./host/embeddings-model-normalize.js";
|
|
export {
|
|
resolveRemoteEmbeddingBearerClient,
|
|
type RemoteEmbeddingProviderId,
|
|
} from "./host/embeddings-remote-client.js";
|
|
export {
|
|
createRemoteEmbeddingProvider,
|
|
resolveRemoteEmbeddingClient,
|
|
type RemoteEmbeddingClient,
|
|
} from "./host/embeddings-remote-provider.js";
|
|
export { fetchRemoteEmbeddingVectors } from "./host/embeddings-remote-fetch.js";
|
|
export {
|
|
estimateStructuredEmbeddingInputBytes,
|
|
estimateUtf8Bytes,
|
|
} from "./host/embedding-input-limits.js";
|
|
export { hasNonTextEmbeddingParts, type EmbeddingInput } from "./host/embedding-inputs.js";
|
|
export { buildRemoteBaseUrlPolicy, withRemoteHttpResponse } from "./host/remote-http.js";
|
|
export {
|
|
buildCaseInsensitiveExtensionGlob,
|
|
classifyMemoryMultimodalPath,
|
|
getMemoryMultimodalExtensions,
|
|
} from "./host/multimodal.js";
|