csharp-sdk/src/ModelContextProtocol.Core/Protocol/EmptyResult.cs
Pranav Senthilnathan 374e76eecd
Fix missing resultType on complete result responses (#1684)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Tarek Mahmoud Sayed <tarekms@ntdev.microsoft.com>
2026-07-12 18:24:21 -07:00

13 lines
No EOL
404 B
C#

using System.Text.Json.Serialization;
namespace ModelContextProtocol.Protocol;
/// <summary>
/// Represents an empty result object for operations that need to indicate successful completion
/// but don't need to return any specific data.
/// </summary>
public sealed class EmptyResult : Result
{
[JsonIgnore]
internal static EmptyResult Instance { get; } = new() { ResultType = "complete" };
}