> ## Documentation Index
> Fetch the complete documentation index at: https://fastmcp-ts.docs.prefect.io/llms.txt
> Use this file to discover all available pages before exploring further.

# SamplingAdapter

Defined in: [client/sampling/types.ts:23](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/sampling/types.ts#L23)

Implemented by all sampling adapters.

## Methods

### asHandler()

```ts theme={null}
asHandler(): SamplingHandler;
```

Defined in: [client/sampling/types.ts:24](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/sampling/types.ts#L24)

#### Returns

[`SamplingHandler`](/api/client/type-aliases/SamplingHandler)
