Add ModelContextProtocol.Core package (#428)
This commit is contained in:
parent
57458241b9
commit
703b0fe50b
1 changed files with 239 additions and 94 deletions
|
|
@ -0,0 +1,22 @@
|
|||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace ModelContextProtocol.Protocol;
|
||||
|
||||
/// <summary>
|
||||
/// Provides metadata related to the request that provides additional protocol-level information.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This class contains properties that are used by the Model Context Protocol
|
||||
/// for features like progress tracking and other protocol-specific capabilities.
|
||||
/// </remarks>
|
||||
public class RequestParamsMetadata
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets an opaque token that will be attached to any subsequent progress notifications.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The receiver is not obligated to provide these notifications.
|
||||
/// </remarks>
|
||||
[JsonPropertyName("progressToken")]
|
||||
public ProgressToken? ProgressToken { get; set; } = default!;
|
||||
}
|
||||
Loading…
Reference in a new issue