Are you an LLM? You can read better optimized documentation at /api/@nhtio/adk/batteries/embeddings/webllm/validation/functions/validateOptions.md for this page in Markdown format
Function: validateOptions()
ts
function validateOptions(input: unknown): WebLLMEmbeddingsAdapterOptions;Defined in: batteries/embeddings/webllm/validation.ts:54
Validates an arbitrary input against webLLMEmbeddingsOptionsSchema and returns the resolved options shape. Throws E_INVALID_WEBLLM_EMBEDDINGS_OPTIONS (carrying the validator's report on cause) on failure.
Parameters
| Parameter | Type | Description |
|---|---|---|
input | unknown | The raw options object to validate. |
Returns
WebLLMEmbeddingsAdapterOptions
The resolved options object with defaults filled in.