---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/ollama/validation/functions/validateOptions.md
---

# Function: validateOptions()

```ts
function validateOptions(input: unknown): OllamaAdapterOptions;
```

Defined in: [batteries/llm/ollama/validation.ts:208](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/llm/ollama/validation.ts#L208)

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

[`OllamaAdapterOptions`](../../types/interfaces/OllamaAdapterOptions.md)

The resolved options object with defaults filled in.
