We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4775040 commit a3b6c11Copy full SHA for a3b6c11
1 file changed
src/ModelContextProtocol.Core/Protocol/ElicitResult.cs
@@ -64,18 +64,15 @@ public sealed class ElicitResult<T> : Result
64
/// <summary>
65
/// Gets or sets the user action in response to the elicitation.
66
/// </summary>
67
- [JsonPropertyName("action")]
68
public string Action { get; set; } = "cancel";
69
70
71
/// Convenience indicator for whether the elicitation was accepted by the user.
72
73
- [JsonIgnore]
74
public bool IsAccepted => string.Equals(Action, "accept", StringComparison.OrdinalIgnoreCase);
75
76
77
/// Gets or sets the submitted form data as a typed value.
78
79
- [JsonPropertyName("content")]
80
public T? Content { get; set; }
81
}
0 commit comments