Are you an LLM? You can read better optimized documentation at /api/@nhtio/adk/batteries/embeddings/ollama/validation.md for this page in Markdown format
@nhtio/adk/batteries/embeddings/ollama/validation
Runtime validation schema and wrapper for Ollama Embeddings adapter options.
Remarks
Validates OllamaEmbeddingsAdapterOptions at construction time. Throws E_INVALID_OLLAMA_EMBEDDINGS_OPTIONS on failure — the same hard-fail policy as every other ADK contract. model is required; unknown top-level keys are rejected so typos fail loud.
Variables
| Variable | Description |
|---|---|
| ollamaEmbeddingsOptionsSchema | Validator schema for OllamaEmbeddingsAdapterOptions. Rejects unknown top-level keys. |
Functions
| Function | Description |
|---|---|
| validateOptions | Validates an arbitrary input against ollamaEmbeddingsOptionsSchema and returns the resolved options shape. Throws E_INVALID_OLLAMA_EMBEDDINGS_OPTIONS (carrying the validator's report on cause) on failure. |