Class Completion
- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents a completion object in the server's response to a CompletionComplete request.
public class Completion
- Inheritance
-
Completion
- Inherited Members
Remarks
See the schema for details.
Properties
HasMore
Gets or sets an indicator as to whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown.
[JsonPropertyName("hasMore")]
public bool? HasMore { get; set; }
Property Value
- bool?
Total
Gets or sets the total number of completion options available.
[JsonPropertyName("total")]
public int? Total { get; set; }
Property Value
- int?
Remarks
This can exceed the number of values actually sent in the response.
Values
Gets or sets an array of completion values (auto-suggestions) for the requested input.
[JsonPropertyName("values")]
public string[] Values { get; set; }
Property Value
- string[]
Remarks
This collection contains the actual text strings to be presented to users as completion suggestions. The array will be empty if no suggestions are available for the current input. Per the specification, this should not exceed 100 items.