AI seeded comments from robch and then edited by stephentoub (#238)
* AI generated `///` comment updates * Fix compilation issues * Fix incorrect XML comment structure * Update all Client comments * Update all Configuration comments * Update all Messages comments * Update all Transport comments * Update all Types comments * Update all Server comments * Undo some commenting --------- Co-authored-by: Stephen Toub <stoub@microsoft.com>
This commit is contained in:
parent
07300389ee
commit
77871c5aac
1 changed files with 4017 additions and 1066 deletions
|
|
@ -1,15 +1,29 @@
|
|||
using System.Text.Json.Serialization;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace ModelContextProtocol.Protocol.Types;
|
||||
|
||||
/// <summary>
|
||||
/// Binary contents of a resource.
|
||||
/// <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/">See the schema for details</see>
|
||||
/// Represents the binary contents of a resource in the Model Context Protocol.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// <see cref="BlobResourceContents"/> is used when binary data needs to be exchanged through
|
||||
/// the Model Context Protocol. The binary data is represented as a base64-encoded string
|
||||
/// in the <see cref="Blob"/> property.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// This class inherits from <see cref="ResourceContents"/>, which also has a sibling implementation
|
||||
/// <see cref="TextResourceContents"/> for text-based resources. When working with resources, the
|
||||
/// appropriate type is chosen based on the nature of the content.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// See the <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/">schema</see> for more details.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public class BlobResourceContents : ResourceContents
|
||||
{
|
||||
/// <summary>
|
||||
/// The base64-encoded string representing the binary data of the item.
|
||||
/// Gets or sets the base64-encoded string representing the binary data of the item.
|
||||
/// </summary>
|
||||
[JsonPropertyName("blob")]
|
||||
public string Blob { get; set; } = string.Empty;
|
||||
|
|
|
|||
Loading…
Reference in a new issue