using System.Text.Json.Nodes; using System.Text.Json.Serialization; namespace ModelContextProtocol.Protocol; /// /// Represents a notification message in the JSON-RPC protocol. /// /// /// Notifications are messages that do not require a response and are not matched with a response message. /// They are useful for one-way communication, such as log notifications and progress updates. /// Unlike requests, notifications do not include an ID field, since there will be no response to match with it. /// public sealed class JsonRpcNotification : JsonRpcMessage { /// /// Gets or sets the name of the notification method. /// [JsonPropertyName("method")] public required string Method { get; set; } /// /// Gets or sets optional parameters for the notification. /// [JsonPropertyName("params")] public JsonNode? Params { get; set; } }