Sampling

data class Sampling(val context: JsonObject? = null, val tools: JsonObject? = null)(source)

sub-capabilities for sampling.

Constructors

Link copied to clipboard
constructor(context: JsonObject? = null, tools: JsonObject? = null)

Properties

Link copied to clipboard

Present if the client supports context inclusion via CreateMessageRequestParams.includeContext with values other than IncludeContext.None. Servers SHOULD avoid non-none values when this field is absent.

Link copied to clipboard

Present if the client supports tool use via CreateMessageRequestParams.tools / CreateMessageRequestParams.toolChoice. Servers MUST NOT send tools/toolChoice when this field is absent.