CompleteResult

data class CompleteResult(val completion: CompleteResult.Completion, val meta: JsonObject? = null) : ServerResult(source)

The server's response to a CompleteRequest.

Provides completion options for prompt or resource template arguments, along with pagination information if there are many possible completions.

Constructors

Link copied to clipboard
constructor(completion: CompleteResult.Completion, meta: JsonObject? = null)

Types

Link copied to clipboard
data class Completion(val values: List<String>, val total: Int? = null, val hasMore: Boolean? = null)

Completion options and pagination information.

Properties

Link copied to clipboard
open val _meta: JsonObject
Link copied to clipboard

The completion options and metadata about available results.

Link copied to clipboard
@SerialName(value = "_meta")
open override val meta: JsonObject?

Optional metadata for this response. See MCP specification for details on _meta usage.