---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/litert_lm/types/interfaces/LiteRtSamplerParametersOption.md
description: >-
  Sampler-parameters option shape (the `type` field accepts the numeric {@link
  SamplerType} value).
---

# Interface: LiteRtSamplerParametersOption

Defined in: [src/batteries/llm/litert\_lm/types.ts:322](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/litert_lm/types.ts#L322)

Sampler-parameters option shape (the `type` field accepts the numeric [SamplerType](../type-aliases/SamplerType.md) value).

## Properties

| Property                                         | Type     | Description                          | Defined in                                                                                                                                |
| ------------------------------------------------ | -------- | ------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|  `k?`                     | `number` | Top-K cutoff.                        | [src/batteries/llm/litert\_lm/types.ts:326](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/litert_lm/types.ts#L326) |
|  `p?`                     | `number` | Top-P (nucleus) cutoff.              | [src/batteries/llm/litert\_lm/types.ts:328](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/litert_lm/types.ts#L328) |
|  `seed?`               | `number` | RNG seed for reproducible sampling.  | [src/batteries/llm/litert\_lm/types.ts:332](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/litert_lm/types.ts#L332) |
|  `temperature?` | `number` | Sampling temperature.                | [src/batteries/llm/litert\_lm/types.ts:330](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/litert_lm/types.ts#L330) |
|  `type?`               | `number` | Sampler strategy: `SamplerType.TOP_K | TOP_P                                                                                                                                     | GREEDY`. | [src/batteries/llm/litert\_lm/types.ts:324](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/litert_lm/types.ts#L324) |
