AI seeded comments from robch and then edited by stephentoub (#238)
* AI generated `///` comment updates * Fix compilation issues * Fix incorrect XML comment structure * Update all Client comments * Update all Configuration comments * Update all Messages comments * Update all Transport comments * Update all Types comments * Update all Server comments * Undo some commenting --------- Co-authored-by: Stephen Toub <stoub@microsoft.com>
This commit is contained in:
parent
07300389ee
commit
77871c5aac
1 changed files with 4017 additions and 1066 deletions
|
|
@ -1,27 +1,40 @@
|
|||
using System.Text.Json.Serialization;
|
||||
using ModelContextProtocol.Protocol.Messages;
|
||||
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace ModelContextProtocol.Protocol.Types;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a completion object in the server's response
|
||||
/// <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/">See the schema for details</see>
|
||||
/// Represents a completion object in the server's response to a <see cref="RequestMethods.CompletionComplete"/> request.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/">schema</see> for details.
|
||||
/// </remarks>
|
||||
public class Completion
|
||||
{
|
||||
/// <summary>
|
||||
/// An array of completion values. Must not exceed 100 items.
|
||||
/// Gets or sets an array of completion values (auto-suggestions) for the requested input.
|
||||
/// </summary>
|
||||
/// <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.
|
||||
/// </remarks>
|
||||
[JsonPropertyName("values")]
|
||||
public string[] Values { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// The total number of completion options available. This can exceed the number of values actually sent in the response.
|
||||
/// Gets or sets the total number of completion options available.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This can exceed the number of values actually sent in the response.
|
||||
/// </remarks>
|
||||
[JsonPropertyName("total")]
|
||||
public int? Total { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown.
|
||||
/// 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.
|
||||
/// </summary>
|
||||
[JsonPropertyName("hasMore")]
|
||||
public bool? HasMore { get; set; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue