> ## Documentation Index
> Fetch the complete documentation index at: https://colin-feat-client-cache-mode.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SamplingAdapterOptions

Defined in: [client/sampling/types.ts:15](https://github.com/PrefectHQ/fastmcp-ts/blob/8976c37f79efa6b87809b884f29a1f235a8c4ad1/src/client/sampling/types.ts#L15)

## Properties

### modelSelector?

```ts theme={null}
optional modelSelector?: ModelSelector;
```

Defined in: [client/sampling/types.ts:17](https://github.com/PrefectHQ/fastmcp-ts/blob/8976c37f79efa6b87809b884f29a1f235a8c4ad1/src/client/sampling/types.ts#L17)

Override or replace the model selection logic.

***

### onToken?

```ts theme={null}
optional onToken?: OnTokenCallback;
```

Defined in: [client/sampling/types.ts:19](https://github.com/PrefectHQ/fastmcp-ts/blob/8976c37f79efa6b87809b884f29a1f235a8c4ad1/src/client/sampling/types.ts#L19)

Fired for each streamed text token. Tool-use deltas are not surfaced.
