Skip to content

Commit a3b6c11

Browse files
committed
Remove unnecessary json attributes. #630
1 parent 4775040 commit a3b6c11

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/ModelContextProtocol.Core/Protocol/ElicitResult.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,15 @@ public sealed class ElicitResult<T> : Result
6464
/// <summary>
6565
/// Gets or sets the user action in response to the elicitation.
6666
/// </summary>
67-
[JsonPropertyName("action")]
6867
public string Action { get; set; } = "cancel";
6968

7069
/// <summary>
7170
/// Convenience indicator for whether the elicitation was accepted by the user.
7271
/// </summary>
73-
[JsonIgnore]
7472
public bool IsAccepted => string.Equals(Action, "accept", StringComparison.OrdinalIgnoreCase);
7573

7674
/// <summary>
7775
/// Gets or sets the submitted form data as a typed value.
7876
/// </summary>
79-
[JsonPropertyName("content")]
8077
public T? Content { get; set; }
8178
}

0 commit comments

Comments
 (0)