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

# SamplingParams

Defined in: [server/context.ts:27](https://github.com/PrefectHQ/fastmcp-ts/blob/8976c37f79efa6b87809b884f29a1f235a8c4ad1/src/server/context.ts#L27)

## Properties

### maxTokens?

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

Defined in: [server/context.ts:31](https://github.com/PrefectHQ/fastmcp-ts/blob/8976c37f79efa6b87809b884f29a1f235a8c4ad1/src/server/context.ts#L31)

Maximum tokens to generate. Defaults to 1024.

***

### messages

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

Defined in: [server/context.ts:28](https://github.com/PrefectHQ/fastmcp-ts/blob/8976c37f79efa6b87809b884f29a1f235a8c4ad1/src/server/context.ts#L28)

***

### modelPreferences?

```ts theme={null}
optional modelPreferences?: {
  costPriority?: number;
  hints?: {
     name?: string;
  }[];
  intelligencePriority?: number;
  speedPriority?: number;
};
```

Defined in: [server/context.ts:34](https://github.com/PrefectHQ/fastmcp-ts/blob/8976c37f79efa6b87809b884f29a1f235a8c4ad1/src/server/context.ts#L34)

#### costPriority?

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

#### hints?

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

#### intelligencePriority?

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

#### speedPriority?

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

***

### stopSequences?

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

Defined in: [server/context.ts:33](https://github.com/PrefectHQ/fastmcp-ts/blob/8976c37f79efa6b87809b884f29a1f235a8c4ad1/src/server/context.ts#L33)

***

### systemPrompt?

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

Defined in: [server/context.ts:29](https://github.com/PrefectHQ/fastmcp-ts/blob/8976c37f79efa6b87809b884f29a1f235a8c4ad1/src/server/context.ts#L29)

***

### temperature?

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

Defined in: [server/context.ts:32](https://github.com/PrefectHQ/fastmcp-ts/blob/8976c37f79efa6b87809b884f29a1f235a8c4ad1/src/server/context.ts#L32)
