Skip to content

Documentation / @agentick/mcp / SamplingParams

Interface: SamplingParams ​

Defined in: protocol/types.ts:673

Properties ​

includeContext? ​

optional includeContext: "none" | "thisServer" | "allServers"

Defined in: protocol/types.ts:682

Whether to include MCP context. Soft-deprecated in 2025-11-25 — gated behind sampling.context sub-capability. Auto-scrubbed by the sugar layer when the client did not advertise it.


maxTokens ​

maxTokens: number

Defined in: protocol/types.ts:684


messages ​

messages: SamplingMessage[]

Defined in: protocol/types.ts:674


metadata? ​

optional metadata: Record<string, unknown>

Defined in: protocol/types.ts:686


modelPreferences? ​

optional modelPreferences: ModelPreferences

Defined in: protocol/types.ts:676


stopSequences? ​

optional stopSequences: string[]

Defined in: protocol/types.ts:685


systemPrompt? ​

optional systemPrompt: string

Defined in: protocol/types.ts:675


temperature? ​

optional temperature: number

Defined in: protocol/types.ts:683


toolChoice? ​

optional toolChoice: object

Defined in: protocol/types.ts:689

mode ​

mode: "auto" | "none" | "required"


tools? ​

optional tools: SamplingToolDefinition[]

Defined in: protocol/types.ts:688

New in 2025-11-25 — gated behind sampling.tools sub-capability.

Released under the ISC License.