ServerCapabilities

@Serializable
data class ServerCapabilities(val experimental: JsonObject? = EmptyJsonObject, val sampling: JsonObject? = EmptyJsonObject, val logging: JsonObject? = EmptyJsonObject, val prompts: ServerCapabilities.Prompts? = null, val resources: ServerCapabilities.Resources? = null, val tools: ServerCapabilities.Tools? = null)(source)

Represents the capabilities that a server can support.

Constructors

Link copied to clipboard
constructor(experimental: JsonObject? = EmptyJsonObject, sampling: JsonObject? = EmptyJsonObject, logging: JsonObject? = EmptyJsonObject, prompts: ServerCapabilities.Prompts? = null, resources: ServerCapabilities.Resources? = null, tools: ServerCapabilities.Tools? = null)

Types

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

Capabilities related to prompt templates.

Link copied to clipboard
@Serializable
data class Resources(val subscribe: Boolean?, val listChanged: Boolean?)

Capabilities related to resources.

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

Capabilities related to tools.

Properties

Link copied to clipboard
val experimental: JsonObject?

Experimental, non-standard capabilities that the server supports.

Link copied to clipboard
val logging: JsonObject?

Present if the server supports sending log messages to the client.

Link copied to clipboard

Capabilities related to prompt templates offered by the server.

Link copied to clipboard

Capabilities related to resources available on the server.

Link copied to clipboard
val sampling: JsonObject?

Present if the client supports sampling from an LLM.

Link copied to clipboard

Capabilities related to tools that can be called on the server.