using System.Text.Json;
using System.Text.Json.Serialization;
namespace ModelContextProtocol.Protocol;
///
/// Represents the client's response to an elicitation request.
///
public class ElicitResult
{
///
/// Gets or sets the user action in response to the elicitation.
///
///
///
/// -
/// "accept"
/// User submitted the form/confirmed the action
///
/// -
/// "decline"
/// User explicitly declined the action
///
/// -
/// "cancel"
/// User dismissed without making an explicit choice
///
///
///
[JsonPropertyName("action")]
public string Action { get; set; } = "cancel";
///
/// Gets or sets the submitted form data.
///
///
/// This is typically omitted if the action is "cancel" or "decline".
///
[JsonPropertyName("content")]
public JsonElement? Content { get; set; }
}