We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d6c5c7 commit 54e0f12Copy full SHA for 54e0f12
1 file changed
src/ModelContextProtocol.Core/Protocol/ElicitResult.cs
@@ -33,6 +33,15 @@ public sealed class ElicitResult : Result
33
[JsonPropertyName("action")]
34
public string Action { get; set; } = "cancel";
35
36
+ /// <summary>
37
+ /// Convenience indicator for whether the elicitation was accepted by the user.
38
+ /// </summary>
39
+ /// <remarks>
40
+ /// Indicates that the elicitation request completed successfully and value of <see cref="Content"/> has been populated with a value.
41
+ /// </remarks>
42
+ [JsonIgnore]
43
+ public bool IsAccepted => string.Equals(Action, "accept", StringComparison.OrdinalIgnoreCase);
44
+
45
/// <summary>
46
/// Gets or sets the submitted form data.
47
/// </summary>
0 commit comments