Function: validateOptions()
ts
function validateOptions(input: unknown): OllamaAdapterOptions;Defined in: batteries/llm/ollama/validation.ts:208
Validates an arbitrary input against ollamaOptionsSchema and returns the resolved options shape. Throws E_INVALID_OLLAMA_OPTIONS (carrying the validator's error report on cause) on failure.
Parameters
| Parameter | Type | Description |
|---|---|---|
input | unknown | The raw options object to validate. |
Returns
The resolved options object with defaults filled in.