Rename project and namespaces
This commit is contained in:
parent
e7fa6194f6
commit
c9ed453745
1 changed files with 426 additions and 918 deletions
28
src/ModelContextProtocol/Protocol/Types/Completion.cs
Normal file
28
src/ModelContextProtocol/Protocol/Types/Completion.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
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/2024-11-05/schema.json">See the schema for details</see>
|
||||
/// </summary>
|
||||
public class Completion
|
||||
{
|
||||
/// <summary>
|
||||
/// An array of completion values. Must not exceed 100 items.
|
||||
/// </summary>
|
||||
[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.
|
||||
/// </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