using System.Text.Json.Serialization;
namespace ModelContextProtocol.Protocol;
///
/// Represents text-based contents of a resource in the Model Context Protocol.
///
///
///
/// is used when textual data needs to be exchanged through
/// the Model Context Protocol. The text is stored directly in the property.
///
///
/// This class inherits from , which also has a sibling implementation
/// for binary resources. When working with resources, the
/// appropriate type is chosen based on the nature of the content.
///
///
/// See the schema for more details.
///
///
public class TextResourceContents : ResourceContents
{
///
/// Gets or sets the text of the item.
///
[JsonPropertyName("text")]
public string Text { get; set; } = string.Empty;
}