/** * Battery-scoped exception constructors for the transformers.js Embeddings adapter. * * @module @nhtio/adk/batteries/embeddings/transformers_js/exceptions * * @remarks * Battery-scoped exception classes for the transformers.js (`@huggingface/transformers`) Embeddings * adapter, minted via `createException` from `@nhtio/adk/factories`. Categories mirror the OpenAI and * WebLLM embeddings batteries one-to-one — only the engine-specific failure differs. */ /** * Thrown when the resolved adapter options fail validation against * `transformersJsEmbeddingsOptionsSchema` — e.g. a missing/empty `model` or an unknown option key. * Fatal: config bugs fail loud, not at embed time. */ export declare const E_INVALID_TRANSFORMERS_JS_EMBEDDINGS_OPTIONS: import("../../../factories").CreatedException<[ string ]>; /** * Thrown when the transformers.js pipeline fails to load (e.g. the `@huggingface/transformers` peer * is not installed) or the `feature-extraction` call throws/returns a malformed result. Non-fatal. * Printf arg: `[detail]`. */ export declare const E_TRANSFORMERS_JS_EMBEDDINGS_ENGINE_ERROR: import("../../../factories").CreatedException<[ string ]>;