> ## 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.

# GenericCompletionParams

Defined in: [client/sampling/generic.ts:10](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/sampling/generic.ts#L10)

## Properties

### maxTokens

```ts theme={null}
maxTokens: number;
```

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

Defaulted to 1024 when absent in the original request.

***

### messages

```ts theme={null}
messages: {
}[];
```

Defined in: [client/sampling/generic.ts:12](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/sampling/generic.ts#L12)

***

### model

```ts theme={null}
model: string;
```

Defined in: [client/sampling/generic.ts:11](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/sampling/generic.ts#L11)

***

### onToken?

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

Defined in: [client/sampling/generic.ts:20](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/sampling/generic.ts#L20)

***

### stopSequences?

```ts theme={null}
optional stopSequences?: string[];
```

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

***

### system?

```ts theme={null}
optional system?: string;
```

Defined in: [client/sampling/generic.ts:13](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/sampling/generic.ts#L13)

***

### temperature?

```ts theme={null}
optional temperature?: number;
```

Defined in: [client/sampling/generic.ts:16](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/sampling/generic.ts#L16)

***

### toolChoice?

```ts theme={null}
optional toolChoice?: {
};
```

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

***

### tools?

```ts theme={null}
optional tools?: {
}[];
```

Defined in: [client/sampling/generic.ts:18](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/sampling/generic.ts#L18)
