Logging Capability (#53)
* Logging Capability * Readability * Redundant using --------- Co-authored-by: Stephen Toub <stoub@microsoft.com>
This commit is contained in:
parent
4d61007c11
commit
10c712a12f
1 changed files with 253 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace ModelContextProtocol.Protocol.Types;
|
||||
|
||||
/// <summary>
|
||||
/// A request from the client to the server, to enable or adjust logging.
|
||||
/// <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/2024-11-05/schema.json">See the schema for details</see>
|
||||
/// </summary>
|
||||
public class SetLevelRequestParams
|
||||
{
|
||||
/// <summary>
|
||||
/// The level of logging that the client wants to receive from the server.
|
||||
/// The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/message.
|
||||
/// </summary>
|
||||
[JsonPropertyName("level")]
|
||||
public required LoggingLevel Level { get; init; }
|
||||
}
|
||||
Loading…
Reference in a new issue