csharp-sdk/src/ModelContextProtocol.Core/Protocol/SetLevelRequestParams.cs
2025-11-04 15:41:10 -08:00

20 lines
788 B
C#

using System.Text.Json.Serialization;
namespace ModelContextProtocol.Protocol;
/// <summary>
/// Represents the parameters used with a <see cref="RequestMethods.LoggingSetLevel"/> request from a client
/// to enable or adjust logging.
/// </summary>
/// <remarks>
/// This request allows clients to configure the level of logging information they want to receive from the server.
/// The server will send notifications for log events at the specified level and all higher (more severe) levels.
/// </remarks>
public sealed class SetLevelRequestParams : RequestParams
{
/// <summary>
/// Gets or sets the level of logging that the client wants to receive from the server.
/// </summary>
[JsonPropertyName("level")]
public required LoggingLevel Level { get; set; }
}