/** * Battery-scoped exception constructors for the transformers.js LLM adapter. * * @module @nhtio/adk/batteries/llm/transformers_js/exceptions * * @remarks * Battery-scoped exception classes for the transformers.js (`@huggingface/transformers`) LLM adapter, * minted via `createException` from `@nhtio/adk/factories` and re-exported from the battery barrel. */ /** * Thrown when the resolved adapter options (constructor, executor overrides, or per-dispatch * `stash.transformersJs`) fail validation against `transformersJsOptionsSchema`. */ export declare const E_INVALID_TRANSFORMERS_JS_OPTIONS: import("../../../factories").CreatedException<[ string ]>; /** * Thrown when the total token weight of the resolved request exceeds `contextWindow`. Only raised * when `tokenEncoding` is non-null. */ export declare const E_TRANSFORMERS_JS_CONTEXT_OVERFLOW: import("../../../factories").CreatedException<[ number, number, string, string ]>; /** * Thrown when the transformers.js pipeline fails to load (e.g. the `@huggingface/transformers` peer * is not installed) or the generation call errors. Non-fatal — surfaced via `ctx.nack(...)`. */ export declare const E_TRANSFORMERS_JS_STREAM_ERROR: import("../../../factories").CreatedException<[ string ]>; /** * Raised when a tool call parsed out of model output carries malformed arguments (not a JSON object). * * @remarks * Non-fatal. The adapter does NOT throw it — it instantiates it inside `executeAndPersistToolCall`, * pulls `.message` into a {@link @nhtio/adk!Tokenizable}, and persists a `ToolCall` with * `isError: true` so the model can self-correct. Printf args: `[reasonHeadline, rawArgs]`. */ export declare const E_TRANSFORMERS_JS_INVALID_TOOL_CALL_ARGS: import("../../../factories").CreatedException<[ string, string ]>; /** * Raised when the model emitted text that looked like a tool call but no configured parser could * extract a well-formed call from it. * * @remarks * Non-fatal. The adapter persists a `ToolCall` with `isError: true` carrying this message so the * model self-corrects on the next iteration (e.g. switch the `toolCallParser` option to match the * model family, or supply a custom parser). Printf args: `[parserName, rawTextExcerpt]`. */ export declare const E_TRANSFORMERS_JS_TOOL_PARSE_FAILED: import("../../../factories").CreatedException<[ string, string ]>; /** * Raised when a {@link @nhtio/adk!Media} instance whose modality the configured model cannot consume * reaches the adapter under `unsupportedMediaPolicy: 'throw'`. * * @remarks * Printf args: `[kind, mimeType, filename]`. */ export declare const E_UNSUPPORTED_MEDIA_MODALITY: import("../../../factories").CreatedException<[ string, string, string ]>;