ClientCapabilities

@Serializable
data class ClientCapabilities(val experimental: JsonObject? = EmptyJsonObject, val sampling: JsonObject? = EmptyJsonObject, val roots: ClientCapabilities.Roots? = null)(source)

Capabilities a client may support. Known capabilities are defined here, in this, but this is not a closed set: any client can define its own, additional capabilities.

Constructors

Link copied to clipboard
constructor(experimental: JsonObject? = EmptyJsonObject, sampling: JsonObject? = EmptyJsonObject, roots: ClientCapabilities.Roots? = null)

Types

Link copied to clipboard
@Serializable
data class Roots(val listChanged: Boolean?)

Properties

Link copied to clipboard
val experimental: JsonObject?

Experimental, non-standard capabilities that the client supports.

Link copied to clipboard

Present if the client supports listing roots.

Link copied to clipboard
val sampling: JsonObject?

Present if the client supports sampling from an LLM.