Completion

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

Completion options and pagination information.

Constructors

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

Properties

Link copied to clipboard

Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. Use this when the complete set of completions is too large to calculate upfront.

Link copied to clipboard
val total: Int?

The total number of completion options available. This can exceed the number of values actually sent in the response, indicating that pagination or filtering may be needed.

Link copied to clipboard

An array of completion values. Must not exceed 100 items. Each value represents a possible completion for the requested argument.