Clean up namespaces (#410)
No meaningful code changes, just lots of namespace shuffling to have fewer namespaces and to put things in better namespaces.
This commit is contained in:
parent
c11c634945
commit
106ab8064f
1 changed files with 491 additions and 668 deletions
30
src/ModelContextProtocol/Protocol/BlobResourceContents.cs
Normal file
30
src/ModelContextProtocol/Protocol/BlobResourceContents.cs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace ModelContextProtocol.Protocol;
|
||||
|
||||
/// <summary>
|
||||
/// 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>
|
||||
/// 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