Completion support (#15)
This commit is contained in:
parent
3e35efe79c
commit
107c7acc8f
1 changed files with 270 additions and 1 deletions
27
src/mcpdotnet/Protocol/Types/Completion.cs
Normal file
27
src/mcpdotnet/Protocol/Types/Completion.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace McpDotNet.Protocol.Types;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a completion object in the server's response.
|
||||
/// </summary>
|
||||
public class Completion
|
||||
{
|
||||
/// <summary>
|
||||
/// An array of completion values. Must not exceed 100 items.
|
||||
/// </summary>
|
||||
[JsonPropertyName("values")]
|
||||
public string[] Values { get; set; } = new string[0];
|
||||
|
||||
/// <summary>
|
||||
/// The total number of completion options available. This can exceed the number of values actually sent in the response.
|
||||
/// </summary>
|
||||
[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.
|
||||
/// </summary>
|
||||
[JsonPropertyName("hasMore")]
|
||||
public bool? HasMore { get; set; }
|
||||
}
|
||||
Loading…
Reference in a new issue